Monkeytype

Latest version: v23.3.0

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

Scan your dependencies

Page 1 of 4

23.3.0

------

* Add ``--pep_563`` flag to ``apply`` command. Thanks Sagar Badiyani.
Merge of 282, fixes 111 and 203.

* Remove hard dependency on Django; ``django.utils.functional.cached_property``
support is now conditionally enabled depending whether it is importable.

* Add support for Python 3.11.

22.2.0

------

* Drop Python 3.6 support.

* Fix `AttributeError: __args__` when generating stubs on Python 3.9. Thanks
GameDungeon and ntjess for the report. Fixes 231.

* Fix `AttributeError: '_SpecialForm' object has no attribute '__name__'` in
collecting traces with Union types. Thanks Federico Caselli for the report.
Fixes 243.

21.5.0

------

* Fix compatibility with Python 3.9. Thanks Felix Yan. Merge of 217, fixes
205.

* Render empty tuple type correctly. Thanks Pradeep Kumar Srinivasan. Merge of
191, fixes 190.

20.5.0

------

* Require ``libcst>=0.3.5``.

* Add ``--ignore-existing-annotations`` flag to ``apply`` command.

20.4.2

------

* Add missing ``libcst`` dependency in ``setup.py``.

20.4.1

------

* Generate stubs for TypedDicts nested within generic types. Disable
TypedDicts completely when the max size is zero. Thanks Pradeep Kumar
Srinivasan. Merge of 162, fixes 159.

* Remove ``stringcase`` dependency, just hand-roll ``pascal_case`` function.

* Shrink dictionary traces with required and optional keys to get non-total
TypedDict class declarations. Thanks Pradeep Kumar Srinivasan.

* Implement ``monkeytype apply`` using libcst's ``ApplyTypeAnnotationsVisitor``.
This correctly applies generated TypedDict classes. Thanks Pradeep Kumar
Srinivasan.

* Render generic types recursively to handle nested special cases like
``List['Movie']``. Thanks Pradeep Kumar Srinivasan. Fixes 76.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.