Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Support typeguard 3.x and 4.x - #392

Merged
CNugteren merged 1 commit into
mainfrom
support-typeguard-3-4
May 20, 2026
Merged

CNugteren merged 1 commit into
mainfrom
support-typeguard-3-4

Conversation

@CNugteren

Copy link
Copy Markdown
Contributor

typeguard 3.0 changed the signature of check_type (dropped the leading argname argument) and replaced the raised TypeError with a new TypeCheckError class that is not a subclass of TypeError. Update the check_type call and exception handler accordingly, and bump the pin from >=2.5.1,<3.0.0 to >=3.0.

Verified against typeguard 3.0.2 and 4.5.2. All tests pass on both. Also unblocks downstream consumers (e.g. larq-zoo) that were stuck on typeguard <3 transitively.

typeguard 3.0 changed the signature of `check_type` (dropped the leading
`argname` argument) and replaced the raised `TypeError` with a new
`TypeCheckError` class that is not a subclass of `TypeError`. Update
the `check_type` call and exception handler accordingly, and bump the
pin from `>=2.5.1,<3.0.0` to `>=3.0`.

Verified against typeguard 3.0.2 and 4.5.2. All tests pass on both.
Also unblocks downstream consumers (e.g. larq-zoo) that were stuck on
typeguard <3 transitively.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CNugteren
CNugteren requested a review from a team May 19, 2026 12:10
@CNugteren CNugteren added the dependencies Pull requests that update a dependency file label May 19, 2026
@CNugteren
CNugteren merged commit 693d0ce into main May 20, 2026
6 checks passed
@CNugteren
CNugteren deleted the support-typeguard-3-4 branch May 20, 2026 06:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants