chore(deps): update dependency ty to v0.0.21#301
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Conversation
98877b7 to
17808a8
Compare
0104528 to
9ec22ac
Compare
7536ac6 to
588db4c
Compare
7f69813 to
a98c654
Compare
5421c94 to
3f40286
Compare
d5da755 to
56edc35
Compare
501b817 to
2b48739
Compare
bef73ca to
d23e49c
Compare
6f53556 to
f333fee
Compare
f333fee to
8a803b6
Compare
dd51c17 to
dcee936
Compare
5d5d205 to
19b0f29
Compare
986facc to
b9b243b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.0.1a27→==0.0.21Release Notes
astral-sh/ty (ty)
v0.0.21Compare Source
Released on 2026-03-05.
Bug fixes
*argsunpacking into optional positional parameters (#23124)Anyattributes withobjectafterisinstancenarrowing (#23725)LSP server
Configuration
allselector toty.jsonschema (#23721)allselector in TOML configurations (#23723)allselector case-sensitive (#23713)Type checking
invalid-enum-member-annotationlint rule (#23648)TypeVaris used to specialize aParamSpec, or vice versa (#23738)Unknowninto unannotated container types (#23718)nameandvalueof an enum (#23683)Callable(#23625)Contributors
v0.0.20Compare Source
Released on 2026-03-02.
Bug fixes
isinstance()orissubclass()checks involvingtype[]types (#23598)NewTypeoffloatand an instance ofAny/Unknown(#23620)Callablewith a variadic positional parameter could be a subtype of aCallablewith a positional-or-keyword parameter (#23610)t.__mro__iftis an instance oftype[Any](#23632)Callabletargets (#23277)python -m tyworks even when ty was installed into an ephemeral virtual environment (#2852)LSP server
Type checking
P.argsandP.kwargs(#23640)Required/NotRequired, and ban them both outside ofTypedDictfields (#23627)@finalon non-methods (#23604)Unpackwhen used with tuple types (#23651)isinstance()andissubclass()(#23607)dataclass_transformdataclasses as neither frozen nor non-frozen (#23366)Typeshed
Contributors
v0.0.19Compare Source
Released on 2026-02-26.
Bug fixes
x = y = {"a": 1}(#23523)TypeAliasTypedefinitions (#23397)LSP server
Core type checking
typing.Generatorprior to Python 3.13 (#23386)await foo()iffooreturnstyping.Awaitable[typing.Never]or similar (#23479)type[T]types (#23472)case {...}:patterns inmatchstatements (#23462)assert_typecalls or false-positiveredundant-castdiagnostics by reimplementing the equivalence type relation as mutual subtyping of top and bottom materializations (#23428)__contains__narrowing with PEP-695 type aliases (#23545)_value_annotations on enum classes (#22228)Improvements to diagnostics
--output-format=githubis specified (#23455)Performance
Literaltypes in unions are upcasted to nominal-instance types in situations where the union type is recursively defined (#23521)Contributors
v0.0.18Compare Source
Released on 2026-02-20.
Bug fixes
type(...)with cyclic bases (#22792)TypeOfin annotations (#23407)LSP server
ty serverinteractively (#23416)call_signature_detailsparameter types (#23149)CLI
--output-formattoty version(#23387)Configuration
replace-imports-with-anyoption (#23122)Type checking
matchstatements (#22939)SelfinClassVartype annotations (#23362)ClassVar-qualified declarations when determining whether an abstract method has been overridden in a subclass (#23381)FinalandClassVar(#23365)assert_never(#23389)assert_typediagnostic messages (#23342)LiteralStringforf"{literal_str_a} {literal_str_b}"(#23346)[abstract-method-in-final-class]diagnostics less verbose for classes with many abstract methods (#23379)@finalclasses (#23376)Neverto terminate control flow (#23419)Sequence[<constituent integers in the bytestring>](#23329)Iterableparameter in type variable inference. (#23326)Callabletype returning aTypeGuardtype (#23280)Performance
Typeshed
Contributors
v0.0.17Compare Source
Released on 2026-02-13.
Bug fixes
Literalpromotion for constrainedTypeVars withLiteralbounds (#23209)TypeVarshadowing checks (#23222)Core type checking
typing.Selfin attribute annotations (#23108)NoReturnfunctions (#23109)os.namechecks (#23230)Finalclass variables in subclasses (#23180)None(#23246)Any(#23248)ParamSpecs in some situations (#23211)LSP server
__init__.py(#21795)datetime.UTC) in auto-import in more cases (#23249)Performance
UnionBuilderoverhead when creating a new union from the filtered elements of an existing union (#22352)Other changes
--output-format=junit(#22125)inconsistent-mrodiagnostics (#23213)Contributors
v0.0.16Compare Source
Released on 2026-02-10.
Bug fixes
Optional(#23200)@no_type_checkwhen combined with other decorators (#23177)LSP server
Fooin autocomplete suggestions when the user is typing outFoo's bases (#23141)CLI
TY_OUTPUT_FORMATenvironment variable (#23123)python3found in$PATHif no environment is found (#22843)Type checking
inconsistent-mroautofix to moveGeneric[]to the end of the bases list (#22998)struct.unpack(#22562, #23130)@classmethodor@staticmethod(#23182)total=keyword toTypedDictclasses that had PEP-695 type parameters (#23114)__dataclass_transform__to support SQLModel (#23070)__gt__, etc.) where a parameter is annotated with aLiteraltype (#23100)TypedDictconstructor calls for generic aliases andtype[...]targets (#23113)Performance
Contributors
v0.0.15Compare Source
Released on 2026-02-04.
Bug fixes
dist-packagesdirectories (#22466)not-iterablefalse positives when iterating over an instance of an intersection type with only negated elements (#22089)Finalsymbol cannot be reassigned even after a conditional binding (#22986)Selfresolution for classes nested within methods (#22964)matchstatements (#22870)__contains__to respect descriptors (#23056)nonlocalvariables with conditional assignments (#22966)NewTypes ofNewTypes offloat(#22997)Callabletype (#22902)dataclass_transform: Fix visibility of field specifiers when models are nested inside methods (#23069)LSP server
Unknownfor bareFinalinstance attributes (#23003)Finalin on-hover hints (#23005)Configuration
unused-type-ignore-commentrule (#22790)./srcas a search path if./src/__init__.py(i)does not exist (#22851)Type checking
Finalbut never has any bindings (#23001)order=Truedataclasses (#22689)invalid-argument-typeandinvalid-assignmentdiagnostics if a variable is annotated with a type from thenumbersmodule (#22931, #22938)unresolved-referenceto suggest using "list" instead of "List" (#22827)...in odd places inside tuple specializations (#22889)Required,NotRequiredandReadOnlyin parameter annotations (#22888)TypeVarbounds or constraints from containing type variables (#22949)tuplespecialization (#22884)Callables in the return type of function signatures (#22954)isinstance()andissubclass()calls againstTypedDictclasses (#22887)issubclass()calls againstProtocolclasses with non-method members (#22896)Protocol[]andGeneric[]simultaneously (#22948)TypeVarTupleis used to subscriptGenericorProtocolwithout being unpacked (#22952)__getattr__or__getattribute__when looking up attributes on class objects (#22985)NewTypes with generic bases (#22961)**is used with a non-mapping in the context of a call to an overloaded function (#22921)ParamSpecfrom class constructors for callable protocols (#22853)invalid-overloaddiagnostics (#22933)@finaldecorator when emittinginvalid-overloaderrors for invalid@finaldecorators (#22893)Literaltypes when inferring elements for very large unannotated tuples, for improved performance (#22841)Protocolclasses as implicitly abstract (#22838)TypeVarTuples (#22950)Any()inmatchclass patterns (#23011)type[None]in type expressions (#22892)pkg_resources.declare_namespace(#22987)__post_init__methods (#22730)Contributors
v0.0.14Compare Source
Released on 2026-01-26.
Bug fixes
unsupported-operatorfor "symmetric" TypeVars (#22756)memo.changed_atassertion panics (#22498)LSP server
Configuration
allowed-unresolved-importssetting (#22800)Other changes
assert-type-unspellable-subtypediagnostic, for failedassert_type()where the actual type is a subtype of the named type that can't be spelled in a type expression (#22815)empty-bodyreturn code for functions with stub bodies that have non-Nonereturn annotations (#22846)awaitoutside functions (#22826)Generic[]subscript (#22738)Unknownfallback (#22778)matchclass pattern (#22836)TypedDicttypes with >=1 required key as being always truthy (#22808)@finaldecoator when emittinginvalid-overloaderrors for invalid@finaldecorators (#22812)*argsand**kwargswhen calling aParamSpeccallable (#22820)TypedDictdefinitions (#22811)typing.NamedTuples (#22718)namedtuple()andNamedTuplecalls (#22765)Contributors
v0.0.13Compare Source
Released on 2026-01-21.
Bug fixes
--force-excludewhen excluding entire directories (#22595)LSP server
Core type checking
ParamSpec(#21946)...as a default value for any parameter if the function is in anif TYPE_CHECKINGblock (#22624)if type(x) is Ynarrowing for types other than class-literal types (#22729)NewTypes with generic bases (#22653)NamedTuple.__new__methods (#22625)NamedTuple,TypedDict,EnumorProtocolclasses decorated with@dataclass(#22672)invalid-type-formdiagnostics for stringified annotations where the quoted expression is invalid (#22752)clsin__new__methods (#22584)ModuleTypeandobjectattributes available on namespace packages (#22606)NamedTuple(...)andnamedtuple(...)calls stricter (#22601)__file__tostrwhen applicable on imported modules (#22333)Sequence[Literal[chars]](#22415)if Foo is type(x)expressions (#22608)typenameandfield_namesby keyword argument tocollections.namedtuple()calls (#22660)typing.NamedTuple(...)(#22599)__setattr__and__delattr__in frozen dataclasses (#21430)NewTypes offloatorcomplex(#22605)Configuration
respect-type-ignore-comments(#22615)Diagnostics
Self(#22646)type[]elements together when displaying union types (#22592)Performance
ClassType::nearest_disjoint_base(#22065)Other changes
Contributors
v0.0.12Compare Source
Released on 2026-01-14.
Bug fixes
casting an object to a TypedDict or union of TypedDicts (#22509)if type(x) == y(#22531)functools.total_ordering: ensure the signatures of generated methods reflect the signature of the user-provided method (#22496)dataclass_transformas a function call (#22378)if type(x) is ynarrowing. For example,if type(x) is tuplewill cause the type ofxto be intersected withtuple[object, ...]rather thantuple[Unknown, ...]. (#22553)Core type checking
type()classes (#22291, #22499, #22537, #22480)namedtuplecreation (#22327, #22573, #22575, #22574)final(#22555)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.