Repository navigation
⬆️ deps: bump dependency ty to >=0.0.113 - #68
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
renovate
Bot
force-pushed
the
renovate/python-dev-dependencies
branch
from
November 30, 2026 04:42
91b7414 to
00b117d
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.108→>=0.0.113Release Notes
astral-sh/ty (ty)
v0.0.113Compare Source
Released on 2026-11-29.
Performance improvements
ty check --watchby avoiding a lock when reusing a parsed module. (#30951)-> Nonefaster by skipping the analysis that determines whether execution can reach an implicit return. (#30987)Selfappears in multiple parts of the signature. (#30966)list[T]faster by avoiding redundant recursion checks when inspecting their type arguments. (#30783)pass, or..., including stubs with a leading docstring. (#30984)@no_type_check. (#30947)if,assert,while, ormatchstatements. (#30947)Memory usage improvements
obj.methodas a callable. (#31017)Callabletype by comparing their signatures directly. (#25948)Core type checking
Nonereturn is valid, as withIterator[int]orGenerator[int, None, str | None]. In these cases, ty skips analyzing whether execution reaches the end of the body. (#30992)TY_MEMORY_REPORT, which can increase reported memory use. (#30950)Contributors
v0.0.112Compare Source
Released on 2026-11-26.
Bug fixes
ty check --watchnow exits with the usual interrupt status 130. (#29976)Performance improvements
Finalqualifiers together. (#30797)from OpenGL.GL import *. (#30790)Finaldeclarations by skipping the search forFinalnames that never receive a value. (#30946)Core type checking
@field_name.convertermethod when checking generated constructor arguments and field assignments. Reading the field gives its declared type. If several converters are registered, the first one determines the accepted input type. (#30959)__attrs_attrs__as a tuple of field metadata on attrs classes and instances. ty also recognizes the attribute afterattrs.hasnarrows a class totype[AttrsInstance]. (#30958)invalid-argument-typewhenattrs.fieldsorattrs.asdictreceives an argument that lacks the__attrs_attrs__member required by theAttrsInstanceprotocol. (#30958)Contributors
v0.0.111Compare Source
Released on 2026-11-25.
Bug fixes
Selfinference even if the decorated name widens to a union. (#30845)Performance improvements
trystatements. (#30776)Anyarguments faster when the earlier overloads infer the same argument types and all rule outobject()at the same argument position. (#30866)self.namefaster by indexing their assignments and declarations once per class. (#30901)self.items = wrap(value)determines the type ofitems. (#30862)list[int]andlist[str]by reusing their method resolution order across type arguments. (#30908)TypedDictor a protocol or inherits from explicitAny. (#30906)__len__. (#30907)items = []by looking up the initializer only for uses that can constrain its type, such asitems.append(1). (#30904)self.name. (#30904)Contributors
v0.0.110Compare Source
Released on 2026-11-25.
Bug fixes
T | Tree[T]. (#30847)[1]to a function with parameter typeT | list[T]and return typelist[T]can now inferlist[int]when that choice fits the other arguments and the expected return type. (#30847)valuesislist[int] | None, ty now accepts appending1to the result ofvalues or [None]and still rejects appendingNone. (#30911)value in ("all", "open")now narrowsstr | list[str]to the two string literals under the default equality settings. The change also covers!=for built-in lists and dictionaries, while respecting custom comparison methods andanalysis.strict-equality-semantics. (#30762)# regionand# endregioncomments, such as those inside a function. (#30893)Diagnostic improvements
incompatible-property-overrideandincompatible-mutable-overridediagnostics when an attribute has neither a matching__slots__entry nor an instance dictionary. When a custom__setattr__rejects writes of a type accepted by the base class, point to that method. (#29531)Configuration changes
project-manager.project = "uv". It requires uv 0.12.3 or later and an already synchronized environment. The default is"none", and an explicitTY_UVtakes precedence. (#30568)Performance improvements
pandas.Series. (#30842)ty check --force-exclude. (#30635)LiteralStringinlay hints can also link to the declaration for the configured Python version. (#30863)contextlib.contextmanager. (#30804, #30903)builtinsmodule and the project’s optional__builtins__module. (#30884)Core type checking
__attrs_init__on attrs classes declared withinit=False, using the same field parameters as a generated__init__. (#30852)@field_name.default. (#30872)Nonecan inferint | Nonefrom an assignment annotation when the list contains anAnyvalue and ty previously inferred onlyNone. (#30480)invalid-assignmentdiagnostics for incompatible collections. For example,x: list[int] = ["a"]now reportslist[str]as the source type. (#30478)Contributors
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)
* 0-3 * * 1)🚦 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.