Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump typeguard from 2.13.3 to 4.2.1 #1122

Merged
merged 4 commits into from
Apr 16, 2024
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 25, 2024

Bumps typeguard from 2.13.3 to 4.2.1.

Release notes

Sourced from typeguard's releases.

4.2.1

  • Fixed missing typing_extensions dependency for Python 3.12 (#444)
  • Fixed deprecation warning in the test suite on Python 3.13 (#444)

4.2.0

  • Added support for specifying options for the pytest plugin via pytest config files (#440)
  • Avoid creating reference cycles when type checking unions (PR by Shantanu)
  • Fixed Optional[...] being removed from the AST if it was located within a subscript (#442)
  • Fixed TypedDict from typing_extensions not being recognized as one (#443)
  • Fixed typing types (dict[str, int], List[str], etc.) not passing checks against type or Type (#432, PR by Yongxin Wang)
  • Fixed detection of optional fields (NotRequired[...]) in TypedDict when using forward references (#424)
  • Fixed mapping checks against Django's MultiValueDict (#419)

4.1.5

  • Fixed Callable erroneously rejecting a callable that has the requested amount of positional arguments but they have defaults (#400)
  • Fixed a regression introduced in v4.1.4 where the elements of Literal got quotes removed from them by the AST transformer (#399)

4.1.4

  • Fixed AttributeError where the transformer removed elements from a PEP 604 union (#384)
  • Fixed AttributeError: 'Subscript' object has no attribute 'slice' when encountering an annotation with a subscript containing an ignored type (imported within an if TYPE_CHECKING: block) (#397)
  • Fixed type checking not being skipped when the target is a union (PEP 604 or typing.Union) where one of the elements is an ignored type (shadowed by an argument, variable assignment or an if TYPE_CHECKING import) (#394, #395)
  • Fixed type checking of class instances created in __new__() in cases such as enums where this method is already invoked before the class has finished initializing (#398)
Changelog

Sourced from typeguard's changelog.

Version history

This library adheres to Semantic Versioning 2.0 <https://semver.org/#semantic-versioning-200>_.

4.2.1 (2023-03-24)

  • Fixed missing typing_extensions dependency for Python 3.12 ([#444](https://github.com/agronholm/typeguard/issues/444) <https://github.com/agronholm/typeguard/issues/444>_)
  • Fixed deprecation warning in the test suite on Python 3.13 ([#444](https://github.com/agronholm/typeguard/issues/444) <https://github.com/agronholm/typeguard/issues/444>_)

4.2.0 (2023-03-23)

  • Added support for specifying options for the pytest plugin via pytest config files ([#440](https://github.com/agronholm/typeguard/issues/440) <https://github.com/agronholm/typeguard/issues/440>_)
  • Avoid creating reference cycles when type checking unions (PR by Shantanu)
  • Fixed Optional[...] being removed from the AST if it was located within a subscript ([#442](https://github.com/agronholm/typeguard/issues/442) <https://github.com/agronholm/typeguard/issues/442>_)
  • Fixed TypedDict from typing_extensions not being recognized as one ([#443](https://github.com/agronholm/typeguard/issues/443) <https://github.com/agronholm/typeguard/issues/443>_)
  • Fixed typing types (dict[str, int], List[str], etc.) not passing checks against type or Type ([#432](https://github.com/agronholm/typeguard/issues/432) <https://github.com/agronholm/typeguard/issues/432>_, PR by Yongxin Wang)
  • Fixed detection of optional fields (NotRequired[...]) in TypedDict when using forward references ([#424](https://github.com/agronholm/typeguard/issues/424) <https://github.com/agronholm/typeguard/issues/424>_)
  • Fixed mapping checks against Django's MultiValueDict ([#419](https://github.com/agronholm/typeguard/issues/419) <https://github.com/agronholm/typeguard/issues/419>_)

4.1.5 (2023-09-11)

  • Fixed Callable erroneously rejecting a callable that has the requested amount of positional arguments but they have defaults ([#400](https://github.com/agronholm/typeguard/issues/400) <https://github.com/agronholm/typeguard/issues/400>_)
  • Fixed a regression introduced in v4.1.4 where the elements of Literal got quotes removed from them by the AST transformer ([#399](https://github.com/agronholm/typeguard/issues/399) <https://github.com/agronholm/typeguard/issues/399>_)

4.1.4 (2023-09-10)

  • Fixed AttributeError where the transformer removed elements from a PEP 604 union ([#384](https://github.com/agronholm/typeguard/issues/384) <https://github.com/agronholm/typeguard/issues/384>_)
  • Fixed AttributeError: 'Subscript' object has no attribute 'slice' when encountering an annotation with a subscript containing an ignored type (imported within an if TYPE_CHECKING: block) ([#397](https://github.com/agronholm/typeguard/issues/397) <https://github.com/agronholm/typeguard/issues/397>_)
  • Fixed type checking not being skipped when the target is a union (PEP 604 or typing.Union) where one of the elements is an ignored type (shadowed by an argument, variable assignment or an if TYPE_CHECKING import)

... (truncated)

Commits
  • b707a58 Added release date
  • 8ba5933 Added changelog entry for #444
  • 79f968f Skip AnyStr tests on Python 3.13+
  • a0f4594 Fixed deprecation warning about @no_type_check_decorator on Python 3.13
  • 286f86d Updated the typing_extensions dependency
  • afebd5d Updated GitHub actions
  • 5eae264 Added release date
  • d51d8bc Fixed pytest plugin tests
  • ded1a04 Added support for specifying options for the pytest plugin via pytest config ...
  • 3c8d46f Fixed mapping checks against Django's MultiValueDict
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will merge this PR once CI passes on it, as requested by @epenet.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Mar 25, 2024
@dependabot dependabot bot force-pushed the dependabot/pip/typeguard-4.2.1 branch 4 times, most recently from 46b7c03 to 64568fd Compare April 16, 2024 09:11
Bumps [typeguard](https://github.com/agronholm/typeguard) from 2.13.3 to 4.2.1.
- [Release notes](https://github.com/agronholm/typeguard/releases)
- [Changelog](https://github.com/agronholm/typeguard/blob/master/docs/versionhistory.rst)
- [Commits](agronholm/typeguard@2.13.3...4.2.1)

---
updated-dependencies:
- dependency-name: typeguard
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/typeguard-4.2.1 branch from 64568fd to cf5ee4d Compare April 16, 2024 09:12
Copy link
Collaborator

@epenet epenet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dependabot squash and merge

Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 16, 2024

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

@dependabot dependabot bot merged commit 38b85ea into main Apr 16, 2024
19 checks passed
@dependabot dependabot bot deleted the dependabot/pip/typeguard-4.2.1 branch April 16, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant