Typeguard

Latest version: v4.4.2

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 12

2.13.2

- Fixed ``typing_extensions`` being imported unconditionally on Python < 3.9
(bug introduced in 2.13.1)

2.13.1

- Fixed ``typechecked`` replacing abstract properties with regular properties
- Fixed any generic type subclassing ``Dict`` being mistakenly checked as ``TypedDict`` on
Python 3.10

2.13.0

- Added support for returning ``NotImplemented`` from binary magic methods (``__eq__()`` et al)
- Added support for checking union types (e.g. ``Type[Union[X, Y]]``)
- Fixed error message when a check against a ``Literal`` fails in a union on Python 3.10
- Fixed ``NewType`` not being checked on Python 3.10
- Fixed unwarranted warning when ``typechecked`` is applied to a class that contains unannotated
properties
- Fixed ``TypeError`` in the async generator wrapper due to changes in ``__aiter__()`` protocol
- Fixed broken ``TypeVar`` checks – variance is now (correctly) disregarded, and only bound types
and constraints are checked against (but type variable resolution is not done)

2.12.1

- Fixed ``AttributeError`` when ``__code__`` is missing from the checked callable (PR by epenet)

2.12.0

- Added ``typeguard_ignore`` decorator to exclude specific functions and classes from
runtime type checking (PR by Claudio Jolowicz)

2.11.1

- Fixed compatibility with Python 3.10

Page 5 of 12

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.