chore(deps): update dependency ty to v0.0.15#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
cba9c97 to
00d73d5
Compare
db9c0a3 to
e80429b
Compare
5a26139 to
21db7e4
Compare
534781d to
1f2f8e3
Compare
1f2f8e3 to
a8d3d0a
Compare
a8d3d0a to
97c8adc
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.15Release Notes
astral-sh/ty (ty)
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)__init_subclass__argument mismatch (#22185)TypeIsandTypeGuarddefinitions (#22300)@total_orderingapplications in non-decorator contexts (#22486)@Todotype for starred expressions (#22503)Callabletypes (#22435)type[Unknown]for calls totype()when overload evaluation is ambiguous (#22569)TypedDicts (#22294)__setitem__dunder calls (#22148)==,!=,isandis notconditions when the left-hand side is not narrowable (#22511)LSP server
__file__type in completions to showstrinstead ofstr | Nonewhen the inferred type isstr(#22510)Contributors
v0.0.11Compare Source
Released on 2026-01-09.
Bug fixes
super()with TypeVar-annotatedselfandclsparameter (#22208)LSP server
Configuration
unused-ignore-commentby default (#22474)Performance
UnionBuilderperformance by changingType::is_subtype_ofcalls toType::is_redundant_with(#22337)Other changes
Contributors
v0.0.10Compare Source
Released on 2026-01-07.
Bug fixes
ParamSpecin overloaded functions (#22416)NewTypes offloat(#22105)LSP server
Twhen a value has typeUnknown | T(#22436)Core type checking
@total_ordering(#22181, #22183)TypedDictclass bodies (#22351)len()(#22330)CLI
--add-ignoreCLI option (#21696)Configuration
include = ["myscript"]will now checkmyscripteven though it doesn't have a Python extension (#22243)Performance
Documentation
Callable__name__FAQ directly fromunresolved-attributediagnostic (#22437)Contributors
v0.0.9Compare Source
Released on 2026-01-05.
Bug fixes
Core type checking
typing.TypeGuard(#20974)__setattr__as fallback-only (#22014)TypedDictunions withnot in(#22349)propertyin subclasses properties (#22088)TypedDicts inmatchstatements (#22299)xto be inferred aslist[int]forx: Iterable[int] = [42](#21930)Literaltype (#22303)LSP server
classstatements (#22110)Other changes
Contributors
v0.0.8Compare Source
Released on 2025-12-29.
Breaking changes
non-subscriptablerule tonot-subscriptable(#22193)Core type checking
LSP server
Diagnostics
unsupported-basesub-diagnostic (#22194)Other changes
Contributors
v0.0.7Compare Source
Released on 2025-12-24.
Bug fixes
import x as yfor semantic syntax highlighting (#22175)Other changes
__delitem__instead of__getitem__fordel x[k](#22121)@staticmethodcombined with other decorators incorrectly bindingself(#22128)Top[Callable[..., object]](#22145)callableis used in a type expression instead ofcollections.abc.Callableortyping.Callable(#22180)Callabletype (#22182)TypedDictas part of its display (#22174)__delitem__for TypedDict to allow deleting non-required keys (#22122)Contributors
v0.0.6Compare Source
Released on 2025-12-23.
Bug fixes
type[T]whereTis a type alias to a union of types (#22115)==narrowing for tuples in unions with disjoint types (#22129)LSP server
ty.configurationandty.configurationFileoptions (#22053)diagnosticMode: offto disable diagnostics while retaining Go To Definition, etc. (#22073)type[T@f]being inserted when you double-click on the inlay (#22139)CLI
Ctrl+C(#22083)Configuration
respect-type-ignore-commentsconfiguration option (#22137)__builtins__.pyi(#22021)Other changes
__get__(#22155)_fieldsattribute for NamedTuples (#22163)_replacemethod for NamedTuples (#22153)TypedDicts (#22104)Contributors
v0.0.5Compare Source
Released on 2025-12-20.
Bug fixes
LSP server
CLI
--force-excludeoption (#22076)Other changes
dict(...)calls inTypedDictcontexts (#22113)Xon an enum class will beintifXis defined usingenum.nonmemberin the class definition (#22025)Contributors
v0.0.4Compare Source
Released on 2025-12-18.
LSP server
from module import submodule(#22042)Other changes
Contributors
v0.0.3Compare Source
Released on 2025-12-17.
LSP server
Core type checking
lencalls based on argument size (#22026)unsupported-baseandinvalid-super-argumentdiagnostics to avoid extremely long lines when encountering verbose types (#22022).pyifiles (#22029)**kwargsand recognize metaclass-based transformers as instances ofDataclassInstance(#22018)Contributors
v0.0.2Released on 2025-12-16.
This is the first Beta release of ty, which we're now ready to recommend to motivated users for
production use. See our blog post for more details.
LSP server
Core type checking
isinstance(…)calls involving type variables (#21999)TypeVarspecializations forCallabletypes (#21551)classmethod-ness through decorators returningCallables (#21958)Callable(#22011)Other
Contributors
v0.0.1Released 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)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.