Monkeytype

Latest version: v23.3.0

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

Scan your dependencies

Page 2 of 4

19.11.2

-------

* Disable TypedDict generation by default for now, since it breaks `--apply`.

19.11.1

-------

* Add setup.py dependences for mypy-extensions and stringcase. Thanks Nicholas
Bollweg for the report.

19.11.0

-------

* Trace per-key value types for dictionaries (up to a configured max size) and
if the traced types are consistent, output a TypedDict in the stub instead of
a homogenous dict. Thanks Pradeep Kumar Srinivasan. Merge of 143, fixes
105.

* Fix crash with empty tuples. Thanks akayunov for the report, Christophe
Simonis for the simplest-case repro. Fixes 136.

* Don't add stringified annotations to type stubs. Thanks Łukasz Langa. Merge
of 148.

* Don't crash in type rewriter on user-defined types that name-collide with
container types from the `typing` module. Thanks Łukasz Langa. Merge of 146.

* Load config after argument parsing instead of during it, to avoid argparse
catching TypeError/ValueError at import time of a custom config and replacing
with a generic "invalid value" message. See
https://bugs.python.org/issue30220. Thanks Daniel G Holmes for the report.
Merge of 142, fixes 141.

* Typing support for collections.defaultdict. Thanks Dinesh Kesavan. Merge of 152.

19.5.0

------

* Mark ``monkeytype`` package as typed per PEP 561. Thanks Vasily Zakharov for
the report.
* Add ``-v`` option; don't display individual traces that fail to decode unless
it is given.

19.1.1

------

* Pass ``--incremental`` to retype when applying stubs, so it doesn't choke on
partial stubs (which can result from e.g. failures to decode some traces).

19.1.0

------

* Add ``--omit-existing-annotations`` option, implied by ``apply``. Merge of
129. Fixes 11 and 81.

* Render ``...`` for all parameter defaults in stubs. Remove the
``--include-unparsable-defaults`` and ``--exclude-unparsable-defaults`` CLI
options, as well as the ``include_unparsable_defaults()`` config method.
Merge of 128, fixes 123.

* Render forward references (from existing annotations) correctly. Merge of 127.

* Rewrite `Generator[..., None, None]` to `Iterator[None]` by default. Merge of
110, fixes 4. Thanks iyanuashiri.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.