Repository navigation
chore(deps): update dependency ty to v0.0.108 - #848
Merged
Merged
Conversation
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.107→==0.0.108Release Notes
astral-sh/ty (ty)
v0.0.108Compare Source
Released on 2026-11-22.
Breaking changes
mismatched-type-namewith eight rules. In configuration, CLI flags, and suppression comments, use the rule for each constructor you want to configure. (#29957)mismatched-newtype-name,mismatched-typevar-name,mismatched-paramspec-name,mismatched-typevartuple-name,mismatched-typeddict-name, andmismatched-type-alias-namewarn by default.mismatched-enum-nameandmismatched-namedtuple-nameare disabled by default. They check names only when ty can infer a single string literal.Bug fixes
Genericbase whose required type parameter follows one with a default. Theinvalid-generic-classdiagnostic now points to the type parameters in the unpacked base. (#30630)ParamSpecwhen an unpacked tuple supplies both a wrapper's own positional parameters and arguments for the callback. (#30594)ParamSpec. (#30547)Unknownresult. (#30549)type Id[T] = T, so ty can infer a generic call's result from the callback's return type. (#30590)invalid-generic-classalso silencedshadowed-type-variablediagnostics in nested classes. (#30588)invalid-paramspecerror on*argswith# ty: ignorecaused the error to reappear on**kwargs. (#30595)LSP server
fromimports outside the requested range. (#30665)CLI
ty check --output-format gitlabreports faster when the same rule produces many diagnostics in one file. (#30724)Diagnostic improvements
uv-metadatadiagnostic toproject-managerand clarify whether uv failed to load project metadata or set up a script environment. Whenproject-manager.script = "uv"is set and ty cannot run a supported version of uv, the script diagnostic points to that setting. Concise output now includes uv's error when it cannot resolve a script's dependencies. (#30528)Core type checking
TypeVar,ParamSpec,TypeVarTuple,NewType, andTypeAliasTypedefinitions even when their names are only known at runtime. By default, ty warns that it cannot verify the name and continues to use the defined type. (#29957)float*) for-0.5and+0.5as for0.5. (#30720)Performance improvements
Calls and overloads
**-unpacked mappings faster by reusing the inferred type for each keyword. (#30638)boto3.client("s3")faster when many overloads expect different string literals. This optimization applies to files that are not open in the editor. (#30642)listorbytessooner. Reuse the inferred type of a tuple literal when those parameter types give its elements no type context. (#30667, #30675)TypeGuardandTypeIs. (#30671)Generics and recursive types
listtypes, overlap. (#30653)Anyfrom a generic base class faster when matching an argument to a union parameter. (#30685)typestatement. (#30682)Classes and
TypedDictsTypedDicttypes, rule out alternatives with missing required keys or conflicting literal tags before inferring field values. (#30641)TypedDictwhen checking a**kwargs: Unpack[SomeTypedDict]annotation. (#30691)TypedDictfields with identical types, including recursive types. (#30554)TypedDictdoes not inherit from anotherTypedDict. (#30706)Unions, narrowing, and literals
dtype. (#30698)type[C]. (#30716)|=on unions of literals. (#30746, #30733)Imports, name resolution, and control flow
__init__.pyto check whether it declares a legacy namespace package. (#30646)ty checkruns that list many individual files. (#30702)self.titlefaster. (#30678)trystatements with oneexceptclause and nofinallyblock. (#30739)Memory usage improvements
isinstancechecks, including unions of unrelated class types or disjoint literals combined withAny. (#30737, #30742)__all__. (#30668)Other changes
NamedTupleLikeprivate in thety_extensionsstubs. (#30567)Contributors
Configuration
📅 Schedule: (UTC)
🚦 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.
📚 Documentation preview 📚: https://objctypes--848.org.readthedocs.build/en/848/