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-annotationsflag toapplycommand.
-
v20.4.2 Changes
April 04, 2020- ➕ Add missing
libcstdependency 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
stringcasedependency, just hand-rollpascal_casefunction.Shrink dictionary traces with required and optional keys to get non-total TypedDict class declarations. Thanks Pradeep Kumar Srinivasan.
Implement
monkeytype applyusing 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
typingmodule. 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
monkeytypepackage as typed per PEP 561. Thanks Vasily Zakharov for the report. - ➕ Add
-voption; don't display individual traces that fail to decode unless it is given.
- 📦 Mark
-
v19.1.1 Changes
January 18, 2019- Pass
--incrementalto retype when applying stubs, so it doesn't choke on partial stubs (which can result from e.g. failures to decode some traces).
- Pass