Repository navigation
Update dependency ty to v0.0.109 - #270
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.108→==0.0.109Release Notes
astral-sh/ty (ty)
v0.0.109Compare Source
Released on 2026-11-23.
Bug fixes
list[T]through a generic helper can now preservelist[T]as the result type. (#30423)unknown-argumentwhencopy.replaceor a generated__replace__receives aninit=Falsefield. This applies to standard-library and Pydantic dataclasses, attrs classes, and other classes usingdataclass_transform. (#30850)selfas a field keyword in dataclass and Pydantic constructors and in dataclass and named tuple replacement methods. (#29341)Selffrom the receiver and field arguments in generated dataclass and named tuple methods, so an inherited method can accept a base-class value for a field annotated withSelf. (#29341)LSP server
Iconsand PySide6’sQt.Key. (#30707)Diagnostic improvements
unknown-rule-in-ignore-comment. The old name,ignore-comment-unknown-rule, remains a compatibility alias in configuration and ignore comments. Runty check --fixto update ignore comments automatically. (#30827)Performance improvements
Calls and overloads
dot(dot(a, b), c)faster when several outer overloads give the inner call the same expected return type. (#30785)Selfacross generic calls with matching parameter and argument types, when there’s no expected return type or unpacked variadic parameter. (#30815)boto3client calls. (#30789)TypedDict.getoverloads that share the type of the default argument. (#30813)*argsor**kwargs. (#30734)Generics and recursive types
Classes and
TypedDictsTypedDicts and unions, including recursive unions such as Pydantic’sCoreSchema. (#30555)Unions, narrowing, and literals
matchstatements that rule out many literal values, such as integer opcode dispatch. (#30736, #30767)analysis.strict-generic-narrowing = true, this also lets anisinstancecheck narrow a value to a more specific type when a recursively inferred type argument was approximated asobject. (#30829)str.startswithchecks on values with many possible literal strings, such as enum member names. (#30811)Collections and iteration
floatandcomplex. (#30796, #30695)File discovery, imports, and control flow
src.includepattern or when all exclude patterns apply only to directories. (#30772, #30794)withblocks. (#30803)import a.b.c. (#30722)Core type checking
enum.auto()values from preceding members in both class-based and functional enums. For sequential integer values, ty counts from the last value through Python 3.10 and from the highest value for Python 3.11 and later targets. It can inferintwhen the exact value depends on runtime data or control flow. (#30548)copy.replace. For example, a field accessed as_idtakes the keywordidby default. An explicitaliastakes precedence. (#30824)except ... as excwhen the handler uses a type alias for a tuple of exception classes or a union of an exception class and a tuple. (#30758)@field_name.validatoron fields declared withattrs.fieldorattr.ib, fixing false missing-attribute errors and preserving the decorated method’s signature. (#30839)not-callableerrors on attrs@field_name.defaultdecorators for fields that ty treats as required constructor arguments. (#30839)Contributors
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.