Repository navigation
chore(deps): update dependency ty to v1.2.0 - #122
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:
==1.1.0→==1.2.0Release Notes
astral-sh/ty (ty)
v1.2.0Compare Source
Released on 2026-12-05.
Bug fixes
.valuebefore ty has checked an enum whose member values depend on themselves. (#31514)missing-attributemore consistently across different file-checking orders. (#30240)missing-attributeerrors. This works with equality, identity, and truthiness checks on tag attributes, as well as withmatchvalue patterns. (#31210)ParamSpecfrom the whole union so callbacks keep their parameter lists even when another union member is non-callable. This catchesinvalid-argument-typeerrors on calls that previously accepted any arguments and preserves shared parameter lists when narrowing withTypeIs. (#31209)auto()calls in tuple-valued members of class-based and functional enums when targeting Python 3.11 or later. Constructor checks use the generated values, matching Python’s behavior since 3.11.1 and avoiding falseinvalid-assignmenterrors. (#31417)NewTypeforSelfin__call__parameter and return types when checking aNewTypeinstance against a callback protocol orCallable. (#31231)LSP server
Performance improvements
matchcases that follow aMapping()ordict()pattern. (#31279)inandnot inchecks against lists, sets, and tuples with known elements when the value being tested can be one of many literals. (#31447)TypedDicts, or bound methods faster, especially when inferring types from large class registries. (#31259)isinstancechecks against different subclasses. (#30769)TypedDictconstructor calls such asRow(row, x=1)faster when the input already has the targetTypedDicttype and keyword arguments override selected fields. (#31456)andororconditions, including when a surroundingtryblock needs to track what can reach an exception handler. (#31463)list[T], faster by avoiding temporary allocations. (#31206)Memory usage improvements
ifandmatchstatements whose branches exit early, such as dispatch code with areturnin each branch. (#31445)isinstancechecks narrow a value to an intersection of several types that need no type-variable orNewTypeexpansion. (#31471)sys.version_infocomparisons. This lets ty follow longer chains with the opt-inredundant-condition-strictrule enabled. (#31254)Core type checking
Tis constrained tointorstrand inference rules outint, ty infersstr. (#31286)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.