Open
Conversation
Member
|
This feels like a false positive. Let's wait for the next ty release and see whether it gets resolved |
Member
See astral-sh/ty#3002. |
d028e70 to
5580822
Compare
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
5580822 to
d4021e2
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.19→==0.0.23Release Notes
astral-sh/ty (ty)
v0.0.23Compare Source
Released on 2026-03-13.
Bug fixes
from __future__ import annotationsis active (#23915)dataclass_transform: Respectkw_onlyoverwrites in dataclasses (#23930)Literaltypes (#23875)Server
#(#23831)Core type checking
possibly-missing-submoduleerror code (enabled by default), and makepossibly-missing-attributeignored by default (#23918)Improvements to diagnostics
from __future__ import annotationsonly stringifies type annotations (#23928)Performance improvements
Contributors
v0.0.22Compare Source
Released on 2026-03-12.
Bug fixes
Divergentif they were assigned using tuple unpacking in loops (#23812)error = "all"in a rootpyproject.tomlfile to be overridden usingtool.ty.overridesin a subdirectory'spyproject.tomlfile (#23712)type[]types to their constructorCallabletype during assignability checks, not during redundancy/subtyping checks (#23834, #23901)LSP server
CLI
ty explain <RULE>CLI command (#23766)Core type checking
TypeVarTupleparameters (#23807)LiteralStringto be narrowed using equality checks (#23794)types.ModuleType(#23786)__setitem__dunder calls (#23800)t | {"foo": int}asTDiftis an instance of a TypedDicttdwith afoo: intkey (#23806)TtoT & strrather thanstrifTis a constrained TypeVar withstras one of its constraints (#23850)NonetoNone | Unknownin invariant contexts (#23790)type[Callable]in type annotations (#23753)T & ~Sis always inferred as a subtype ofUduring generic inference ifTis understood as a subtype ofU(#23728)Installer
Contributors
v0.0.21Compare Source
Released on 2026-03-05.
Bug fixes
*argsunpacking into optional positional parameters (#23124)Anyattributes withobjectafterisinstancenarrowing (#23725)LSP server
Configuration
allselector toty.jsonschema (#23721)allselector in TOML configurations (#23723)allselector case-sensitive (#23713)Type checking
invalid-enum-member-annotationlint rule (#23648)TypeVaris used to specialize aParamSpec, or vice versa (#23738)Unknowninto unannotated container types (#23718)nameandvalueof an enum (#23683)Callable(#23625)Contributors
v0.0.20Compare Source
Released on 2026-03-02.
Bug fixes
isinstance()orissubclass()checks involvingtype[]types (#23598)NewTypeoffloatand an instance ofAny/Unknown(#23620)Callablewith a variadic positional parameter could be a subtype of aCallablewith a positional-or-keyword parameter (#23610)t.__mro__iftis an instance oftype[Any](#23632)Callabletargets (#23277)python -m tyworks even when ty was installed into an ephemeral virtual environment (#2852)LSP server
Type checking
P.argsandP.kwargs(#23640)Required/NotRequired, and ban them both outside ofTypedDictfields (#23627)@finalon non-methods (#23604)Unpackwhen used with tuple types (#23651)isinstance()andissubclass()(#23607)dataclass_transformdataclasses as neither frozen nor non-frozen (#23366)Typeshed
Contributors
Configuration
📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 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.