Typeguard

Latest version: v4.4.1

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

Scan your dependencies

Page 2 of 2

4.1.4

- Fixed `AttributeError` where the transformer removed elements from a PEP 604 union ([\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))
- 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](https://github.com/agronholm/typeguard/issues/394), [\#395](https://github.com/agronholm/typeguard/issues/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](https://github.com/agronholm/typeguard/issues/398))

Page 2 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.