GitHub
03/09/2026, 7:43 PMty from 0.0.19 to 0.0.20
Release notes
Sourced from ty's releases.
0.0.20
Release Notes
Released on 2026-03-02.
Bug fixes
• Disallow negative narrowing fororisinstance()checks involvingissubclass()types (#23598)type[]
• Fix binary operations between an instance of aofNewTypeand an instance of `Any`/`Unknown` (#23620)float
• Fix bug where ty would think that awith a variadic positional parameter could be a subtype of aCallablewith a positional-or-keyword parameter (#23610)Callable
• Fix inference ofift.__mro__is an instance oft(#23632)type[Any]
• Fix overloaded callable assignability for unarytargets (#23277)Callable
• Limit recursion depth when displaying self-referential function types (#23647)
• Ensure thatworks even when ty was installed into an ephemeral virtual environment (#2852)python -m ty
LSP server
• Add support for the LSP protocol's "type hierarchy" feature (#23566)
Type checking
• Add more ParamSpec validation forandP.args(#23640)P.kwargs
• Ban nested `Required`/`NotRequired`, and ban them both outside offields (#23627)TypedDict
• Detect inconsistent generic base class specializations that appear in the same MRO (#23615)
• Detect invalid uses ofon non-methods (#23604)@final
• Add partial support and validation forwhen used with tuple types (#23651)Unpack
• Recurse into tuples and nested tuples when applying special-cased validation of arguments passed toandisinstance()(#23607)issubclass()
• Reject ellipsis literals in odd places in type/annotation expressions (#23611)
• Reject functions with PEP-695 type parameters that shadow type parameters from enclosing scopes (#23619)
• Reject generic metaclasses parameterized by type variables (#23628)
• Treatdataclasses as neither frozen nor non-frozen (#23366)dataclass_transform
• Validate that type variable defaults don't reference later type parameters or type parameters out of scope (#23623)
Typeshed
• Sync vendored typeshed stubs (#23642). Typeshed diff
Contributors
• `@Hugo-Polloli`
• `@zanieb`
• `@sharkdp`
• `@mtshiba`
• `@carljm`
• `@charliermarsh`
• `@sinon`
• `@BurntSushi`
• `@oconnor663`
• `@AlexWaygood`
• `@zsol`... (truncated) Changelog Sourced from ty's changelog.
0.0.20
Released on 2026-03-02.
Bug fixes
• Disallow negative narrowing fororisinstance()checks involvingissubclass()types (#23598)type[]
• Fix binary operations between an instance of aofNewTypeand an instance of `Any`/`Unknown` (#23620)float
• Fix bug where ty would think that awith a variadic positional parameter could be a subtype of aCallablewith a positional-or-keyword parameter (#23610)Callable
• Fix inference ofift.__mro__is an instance oft(#23632)type[Any]
• Fix overloaded callable assignability for unarytargets (#23277)Callable
• Limit recursion depth when displaying self-referential function types (#23647)
• Ensure thatworks even when ty was installed into an ephemeral virtual environment (#2852)python -m ty
LSP server
• Add support for the LSP protocol's "type hierarchy" feature (#23566)
Type checking
• Add more ParamSpec validation forandP.args(#23640)P.kwargs
• Ban nested `Required`/`NotRequired`, and ban them both outside offields (#23627)TypedDict
• Detect inconsistent generic base class specializations that appear in the same MRO (#23615)
• Detect invalid uses ofon non-methods (#23604)@final
• Add partial support and validation forwhen used with tuple types (#23651)Unpack
• Recurse into tuples and nested tuples when applying special-cased validation of arguments passed toandisinstance()(#23607)issubclass()
• Reject ellipsis literals in odd places in type/annotation expressions (#23611)
• Reject functions with PEP-695 type parameters that shadow type parameters from enclosing scopes (#23619)
• Reject generic metaclasses parameterized by type variables (#23628)
• Treatdataclasses as neither frozen nor non-frozen (#23366)dataclass_transform
• Validate that type variable defaults don't reference later type parameters or type parameters out of scope (#23623)
Typeshed
• Sync vendored typeshed stubs (#23642). Typeshed diff
Contributors
• `@Hugo-Polloli`
• `@zanieb`
• `@sharkdp`
• `@mtshiba`
• <h…meltano/meltano
GitHub
03/09/2026, 7:54 PM