Changelog History
Page 1
-
v22.2.0 Changes
โฌ๏ธ 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.
-
v21.5.0 Changes
๐ 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.
-
v20.5.0 Changes
May 18, 2020Require
libcst>=0.3.5
.โ Add
--ignore-existing-annotations
flag toapply
command.
-
v20.4.2 Changes
April 04, 2020- โ Add missing
libcst
dependency insetup.py
.
- โ Add missing
-
v20.4.1 Changes
April 03, 2020Generate 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-rollpascal_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'sApplyTypeAnnotationsVisitor
. 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.
-
v19.11.2 Changes
December 03, 2019- 0๏ธโฃ Disable TypedDict generation by default for now, since it breaks
--apply
.
- 0๏ธโฃ Disable TypedDict generation by default for now, since it breaks
-
v19.11.1 Changes
November 19, 2019- โ Add setup.py dependences for mypy-extensions and stringcase. Thanks Nicholas Bollweg for the report.
-
v19.11.0 Changes
November 19, 2019๐ง 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.
-
v19.5.0 Changes
May 13, 2019- ๐ฆ 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.
- ๐ฆ Mark
-
v19.1.1 Changes
January 18, 2019- 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).
- Pass