unstale

pypi / ty

ty

What changed in ty 0.0, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

146 breaking3 security7 deprecations96 new APIs and options108 performance285 behavior and defaults117 tooling959 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

ty 0.01721 changes

Breaking changes 146

  • Rejects union narrowing attempts when nested calls fail.

    0.0.107release notes

  • Incompatible TypeIs narrowings are split into two new rules.

    0.0.106release notes

  • This diagnostic is split out of import-not-found into a separate rule.

    0.0.105release notes

  • Single-constraint TypeVar calls now use the constraints rule.

    0.0.105release notes

  • The diagnostic rule is renamed to abstract-method-call; configurations using the old name may need updating.

    0.0.102release notes

  • The diagnostic rule is renamed to not-callable; configurations using the old name may need updating.

    0.0.102release notes

  • The diagnostic rule is renamed to call-to-function-with-unknown-signature; configurations using the old name may need updating.

    0.0.102release notes

  • The diagnostic rule is renamed to invalid-dataclass-field-order; configurations using the old name may need updating.

    0.0.102release notes

  • The rule is renamed as part of the focused-rule split, so configurations using its old name may need updating.

    0.0.102release notes

  • The diagnostic rule is renamed to implicit-string-concatenation-in-annotation; configurations using the old name may need updating.

    0.0.102release notes

  • The rule is split into three focused rules, changing how developers select and configure these diagnostics.

    0.0.102release notes

  • Abstract class instantiation has its own diagnostic rule.

    0.0.100release notes

  • Diagnostics distinguish attributes missing from some union members.

    0.0.100release notes

  • The incompatible override rules are renamed.

    0.0.100release notes

  • This diagnostic is split out from incompatible method override.

    0.0.100release notes

  • The invalid-key diagnostic is split into three TypedDict diagnostic rules.

    0.0.100release notes

  • The unresolved-import diagnostic is renamed to import-not-found.

    0.0.97release notes

  • NO_COLOR takes precedence over FORCE_COLOR and CLICOLOR_FORCE in diagnostics.

    0.0.96release notes

  • Rejects defaulted TypeVars after a TypeVarTuple in legacy generic classes.

    0.0.94release notes

  • Check implicit and PEP 613 type aliases as type expressions at their definitions.

    0.0.92release notes

  • Liskov diagnostics now check inherited attribute conflicts.

    0.0.91release notes

  • The type checker rejects runtime_checkable when applied to a non-protocol class.

    0.0.90release notes

  • Deleting, popping, or defaulting read-only TypedDict items is reported.

    0.0.90release notes

  • Enables the invalid-mutable-override rule by default.

    0.0.87release notes

  • Type checking now checks attribute and property override types.

    0.0.86release notes

  • The default Python version is updated to 3.15.

    0.0.86release notes

  • Treats bound methods without a receiver as not callable.

    0.0.85release notes

  • Limits wildcard exports using a literal __all__.

    0.0.85release notes

  • Notebook files are no longer read when discovering scripts.

    0.0.84release notes

  • Rejects class-scoped type variables in __init__ receivers.

    0.0.83release notes

  • Rejects unsafe TypedDict updates from hidden fields.

    0.0.83release notes

  • Instantiating an abstract class is rejected.

    0.0.82release notes

  • Imports are treated as bindings instead of declarations.

    0.0.82release notes

  • Reassignment of enum members is now rejected.

    0.0.81release notes

  • Type checking reports override conflicts introduced by new bases.

    0.0.81release notes

  • Requires a direct dependency for reveal_type backport fixes.

    0.0.79release notes

  • Rejects missing attributes on type[] aliases.

    0.0.79release notes

  • Rejects circular type alias definitions.

    0.0.76release notes

  • Rejects class access to generic instance attributes.

    0.0.76release notes

  • Invalidates member narrowing across loop iterations.

    0.0.76release notes

  • Fixed tuples are rejected for non-inferable TypeVarTuples.

    0.0.75release notes

  • Incompatible constructor context is rejected for variadic packs.

    0.0.75release notes

  • Generator-expression exceptions are treated as eagerly evaluated.

    0.0.72release notes

  • Invalid module-level __getattr__ calls are diagnosed.

    0.0.72release notes

  • Protocol members now require ClassVar declarations.

    0.0.70release notes

  • Object members are considered when comparing protocols.

    0.0.70release notes

  • Rejects unsupported dataclass_transform parameters.

    0.0.67release notes

  • This setting replaces the removed deprecated src.root setting.

    0.0.67release notes

  • Rejects unhashable objects for Hashable protocols.

    0.0.67release notes

  • Rejects Self with incompatible explicit receiver annotations.

    0.0.67release notes

  • Removes the deprecated setting; use environment.root instead.

    0.0.67release notes

  • Stub-only helpers are no longer visible through implicit builtin lookup.

    0.0.66release notes

  • ty rejects ClassVar and Final qualifiers in NamedTuple fields.

    0.0.66release notes

  • ty emits a diagnostic when a non-generic class is specialized.

    0.0.66release notes

  • ty rejects specializing non-generic subclasses.

    0.0.66release notes

  • ty rejects ParamSpec components that are out of scope.

    0.0.66release notes

  • Unknown is moved out of the experimental ty_extensions API.

    0.0.66release notes

  • Rejects deletion of frozen dataclass fields through subclasses.

    0.0.65release notes

  • Treats bivariance as covariant.

    0.0.64release notes

  • Known-instance types, generic aliases, and non-singleton special-form types are no longer considered single-valued.

    0.0.64release notes

  • Pydantic sub-model fields receive stricter validation in lax mode.

    0.0.63release notes

  • Removes unused own-line ignore comments.

    0.0.62release notes

  • Type checking enforces declared domains for receiver TypeVars.

    0.0.61release notes

  • The invalid-type-guard-call diagnostic is removed.

    0.0.60release notes

  • Rejects undeclared instance attributes on protocols.

    0.0.54release notes

  • Non-empty ranges are no longer treated as single-valued, and non-empty range calls are treated as non-empty for reachability.

    0.0.54release notes

  • The CLI now enables error-on-warning by default.

    0.0.52release notes

  • Classes with Any or Unknown bases are no longer assumed to be descriptors.

    0.0.51release notes

  • Invalid combinations of dataclass flags are rejected.

    0.0.50release notes

  • Legacy TypeVars in PEP 695 class bases are rejected.

    0.0.50release notes

  • Legacy TypeVars in PEP 695 functions are rejected.

    0.0.50release notes

  • Zero-step slices on lists are diagnosed.

    0.0.50release notes

  • Restricts length narrowing to types that encode their length.

    0.0.49release notes

  • Requires subtyping for transitive constraint pivots during type checking.

    0.0.48release notes

  • Dynamic class attributes are no longer treated as instance attributes.

    0.0.45release notes

  • Type checking now checks implicit open TypedDict extra items.

    0.0.45release notes

  • Self is rejected in type aliases.

    0.0.43release notes

  • TypedDict flags must be literal booleans.

    0.0.43release notes

  • Annotations on non-name targets are ignored and rejected.

    0.0.40release notes

  • Inconsistent generic bases are rejected for dynamic classes created using type(...), types.new_type(...), and similar mechanisms.

    0.0.40release notes

  • Type checking now rejects incompatible explicit variance in generic base classes.

    0.0.39release notes

  • ty emits a diagnostic for subclassing with order=True.

    0.0.39release notes

  • Full support now starts at Python 3.10; with --python-version 3.9, ty still reports version-specific syntax errors and other diagnostics.

    0.0.39release notes

  • Dataclass decorator parameters are rejected according to the supported Python version.

    0.0.35release notes

  • Non-generic overload implementations are now checked.

    0.0.35release notes

  • Invalid uses of Unpack now produce a diagnostic.

    0.0.33release notes

  • Disallows using @disjoint_base on TypedDicts and Protocols.

    0.0.32release notes

  • Rejects properties with Never setters or deleters.

    0.0.32release notes

  • Reduces the source code context window to zero.

    0.0.32release notes

  • Deleting Final attributes is rejected.

    0.0.30release notes

  • A diagnostic is emitted when inheriting from a class with __init_subclass__ = None.

    0.0.30release notes

  • Bare ParamSpec is disallowed in Concatenate prefixes.

    0.0.30release notes

  • Inferred types of most unannotated attributes no longer include Unknown, which can change diagnostics across a codebase. Initializers of None and other non-literal singleton types remain exceptions.

    0.0.30release notes

  • Enum attributes with type annotations are treated as members.

    0.0.29release notes

  • Configuration files with unsupported environment.python-version values are rejected.

    0.0.29release notes

  • Validation of subscripts and attributes in type expressions is tightened.

    0.0.28release notes

  • TypedDict fields are validated when subclassing.

    0.0.28release notes

  • Enforces Final attribute assignment rules for annotated and augmented writes.

    0.0.27release notes

  • Type qualifiers are now banned in PEP-695 type aliases.

    0.0.27release notes

  • Validates the return type of generator functions.

    0.0.26release notes

  • Disallows Self in metaclass and static methods.

    0.0.26release notes

  • Read-only fields are disallowed in TypedDict updates.

    0.0.25release notes

  • Narrows keyword arguments when unpacking dictionary instances.

    0.0.24release notes

  • Adds a distinct error code for possibly missing submodules; it is enabled by default.

    0.0.23release notes

  • Module-literal types are no longer promoted to types.ModuleType.

    0.0.22release notes

  • Detects invalid partially stringified PEP-604 unions.

    0.0.22release notes

  • Rejects type[Callable] in type annotations.

    0.0.22release notes

  • Adds validation for type parameters with defaults after TypeVarTuple parameters.

    0.0.22release notes

  • Makes the all selector case-sensitive.

    0.0.21release notes

  • No longer unions Unknown into unannotated container types.

    0.0.21release notes

  • Detects unbound type variables in annotations.

    0.0.21release notes

  • Rejects ellipsis literals in invalid locations in type and annotation expressions.

    0.0.20release notes

  • Detects invalid uses of @final on non-methods.

    0.0.20release notes

  • Rejects generic metaclasses parameterized by type variables.

    0.0.20release notes

  • Rejects functions whose PEP-695 type parameters shadow type parameters from enclosing scopes.

    0.0.20release notes

  • Nested Required and NotRequired are banned, as are uses of either outside TypedDict fields.

    0.0.20release notes

  • Validates that type variable defaults do not reference later type parameters or parameters out of scope.

    0.0.20release notes

  • Calls to instances of type[T] types now receive stricter handling.

    0.0.19release notes

  • Annotated assignments to attributes on self are now validated.

    0.0.18release notes

  • Literal promotion is now performed only for implicitly inferred literals.

    0.0.18release notes

  • PEP-613 type alias values may no longer contain type-qualifier special forms.

    0.0.18release notes

  • Disallows type variables within PEP-695 type variable bounds and constraints.

    0.0.17release notes

  • Emits an error for invalid type variable defaults.

    0.0.17release notes

  • Emits an error when an attribute is accessed on a union and some elements do not have that attribute.

    0.0.17release notes

  • The checker now disallows TypeVars within ClassVars.

    0.0.16release notes

  • The checker now emits a diagnostic for unbound calls to abstract @classmethod or @staticmethod methods.

    0.0.16release notes

  • A Final symbol cannot be reassigned after a conditional binding, and unbound Final declarations now receive a diagnostic.

    0.0.15release notes

  • Disallows Required, NotRequired, and ReadOnly in parameter annotations.

    0.0.15release notes

  • Functions with stub bodies in Protocol classes are recognized as implicitly abstract.

    0.0.15release notes

  • Diagnoses ... in invalid positions and multiple unpacked variadic tuples in a tuple specialization.

    0.0.15release notes

  • Legacy TypeVar bounds and constraints cannot contain type variables.

    0.0.15release notes

  • Requires TypeVarTuple to be unpacked when used to subscript Generic or Protocol.

    0.0.15release notes

  • Emits a diagnostic for an unimplemented abstract method on a @final class.

    0.0.14release notes

  • Emits an error when the same type parameter appears more than once in a Generic[] subscript.

    0.0.14release notes

  • Calling a ParamSpec callable now requires both *args and **kwargs.

    0.0.14release notes

  • Validation of TypedDict definitions is stricter.

    0.0.14release notes

  • Emits diagnostics when NamedTuple, TypedDict, Enum, or Protocol classes are decorated with @dataclass.

    0.0.13release notes

  • Emits diagnostics for stringified annotations whose quoted expression is invalid.

    0.0.13release notes

  • Makes NamedTuple(...) and namedtuple(...) calls stricter.

    0.0.13release notes

  • Rejects NewTypes with generic bases.

    0.0.13release notes

  • Adds a diagnostic for uses of final that are not decorators.

    0.0.12release notes

  • Emits diagnostics for method definitions and other invalid statements in TypedDict class bodies.

    0.0.10release notes

  • Callable type materializations are fixed and simplified, changing core type-checking behavior.

    0.0.8release notes

  • A type object's callable type is no longer treated as function-like, affecting type-checking results.

    0.0.8release notes

  • Float and complex types are promoted when promoting literals, changing core type-checking results.

    0.0.8release notes

  • The rule formerly named non-subscriptable is renamed not-subscriptable; update references to the old rule name.

    0.0.8release notes

Security 3

  • macOS and Windows executables in release archives and ty wheels are signed, enabling publisher and binary integrity verification and supporting publisher-based allowlisting.

    0.0.86release notes

  • Fixes a use-after-free vulnerability that could allow arbitrary code execution when analyzing a specially crafted Python project; users running ty on untrusted code should upgrade.

    0.0.84release notes

  • Embeds archive checksums in the shell installer.

    0.0.79release notes

Deprecations 7

  • Warns when configuration or ignore comments use renamed rules.

    0.0.98release notes

  • Reports deprecated overloads in decorator applications.

    0.0.85release notes

  • Deprecation diagnostics are reported for property accessors on intersections.

    0.0.78release notes

  • Deprecation diagnostics are reported for implicit constructor calls.

    0.0.78release notes

  • Deprecation diagnostics are reported for overloads, operators, and properties.

    0.0.78release notes

  • Deprecated unary operations are reported.

    0.0.72release notes

  • Running the server interactively now displays a warning message.

    0.0.18release notes

New APIs and options 96

  • Adds the project-manager.script configuration option with the value uv.

    0.0.106release notes

  • The LSP server now supports the workspace/willRenameFiles request.

    0.0.99release notes

  • Add the preview tool.ty.baseline setting to configure a diagnostic baseline file, helping adopt ty in projects with existing errors.

    0.0.93release notes

  • Add a command-line option to record existing diagnostics in the configured baseline.

    0.0.93release notes

  • Infer the types of Django model primary keys pk and the automatic id with django-types.

    0.0.92release notes

  • Emit SARIF reports with the sarif output format.

    0.0.92release notes

  • This setting enables return type inference; it is disabled by default.

    0.0.89release notes

  • Adds the mismatched-sentinel-name rule as an opt-in diagnostic.

    0.0.87release notes

  • Supports slots_default in dataclass_transform.

    0.0.85release notes

  • Adds the opt-in truthiness-test-of-none-union rule.

    0.0.85release notes

  • Introduces Recursive types and full support for recursive implicit type aliases.

    0.0.82release notes

  • Adds support for type[A & B].

    0.0.82release notes

  • Adds rules to detect conditions that are always truthy or always falsy.

    0.0.79release notes

  • A new diagnostic rule reports disjoint casts.

    0.0.78release notes

  • Adds a preview rule that detects missing direct dependencies.

    0.0.76release notes

  • A dedicated diagnostic is available for missing slots.

    0.0.75release notes

  • Tagged unions support multiple tags per type.

    0.0.75release notes

  • Adds executable discovery to the server command.

    0.0.74release notes

  • Supports pull diagnostics for notebook cells.

    0.0.74release notes

  • Adds support for __slots__.

    0.0.74release notes

  • Adds an opt-in rule for variables that diagnoses unsound assignments.

    0.0.74release notes

  • Adds the untrustedWorkspace option to the LSP.

    0.0.74release notes

  • Adds an opt-in diagnostic rule for function decorators that transform a non-dynamic type into a dynamic type.

    0.0.73release notes

  • Implements intersection meta-type projection in the type checker.

    0.0.73release notes

  • Adds an opt-in lint for unsound return statements.

    0.0.70release notes

  • Adds an opt-in lint for unsound yields.

    0.0.70release notes

  • Pydantic models now have a synthesized __replace__ method.

    0.0.65release notes

  • Adds an option to exclude scripts.

    0.0.64release notes

  • Adds support for generic manual PEP 695 type aliases.

    0.0.64release notes

  • Adds an option to include scripts.

    0.0.64release notes

  • The LSP server implements the textDocument/implementation request, enabling clients to request implementation locations.

    0.0.64release notes

  • Pydantic BaseSettings models now support special underscore parameters.

    0.0.63release notes

  • Supports TypeVarTuple and Unpack in type checking.

    0.0.61release notes

  • Protocol support now includes class and static methods.

    0.0.60release notes

  • Protocol types are now supported in type[Protocol] annotations.

    0.0.60release notes

  • Adds a rule for blanket ignore comments.

    0.0.58release notes

  • Adds support for dict model configurations in Pydantic.

    0.0.58release notes

  • Adds support for validation of RootModel fields.

    0.0.58release notes

  • Adds Pydantic support for validate_by_alias.

    0.0.58release notes

  • Adds Pydantic support for validate_by_name.

    0.0.58release notes

  • Adds Pydantic support for validation_alias.

    0.0.58release notes

  • ty detects Pydantic model configurations.

    0.0.57release notes

  • ty supports extra arguments in Pydantic model constructors.

    0.0.57release notes

  • ty distinguishes lax and strict mode for Pydantic models.

    0.0.57release notes

  • The LSP server implements rust-analyzer's feature for opening the full compiler diagnostic.

    0.0.54release notes

  • Models non-exhaustive enum member sets for enum.Flag.

    0.0.54release notes

  • Intersection and negation types are annotated using & and ~.

    0.0.50release notes

  • The LSP server provides context-sensitive keyword completions.

    0.0.50release notes

  • Adds type-checking support for TypedDict extra_items.

    0.0.48release notes

  • Individual constraints can have optional lower and upper bounds.

    0.0.43release notes

  • The LSP server adds call hierarchy support for editor integrations.

    0.0.41release notes

  • The LSP server adds function parentheses completion.

    0.0.41release notes

  • Adds an opt-in diagnostic rule for missing override decorators.

    0.0.41release notes

  • Support is added for typing.TypeForm.

    0.0.40release notes

  • The LSP server supports type aliases in document symbols.

    0.0.39release notes

  • Adds support for class decorators in type checking.

    0.0.38release notes

  • Adds first-class support for enum complements in type checking.

    0.0.38release notes

  • Supports custom _generate_next_value_ methods in enums.

    0.0.38release notes

  • Adds type-checking support for sentinel values as described in PEP 661.

    0.0.36release notes

  • ParamSpec now supports variance keywords.

    0.0.34release notes

  • Legacy TypeVar now supports infer_variance.

    0.0.34release notes

  • Adds a mode to enable auto-fix for diagnostics.

    0.0.31release notes

  • Functional Enum(...) syntax is now supported.

    0.0.30release notes

  • Core type checking adds support for types.new_class.

    0.0.29release notes

  • Adds support for functional TypedDict declarations.

    0.0.27release notes

  • Suppressions using type:ignore[ty:code] are now supported.

    0.0.25release notes

  • Adds the ty explain <RULE> CLI command.

    0.0.22release notes

  • Adds the all selector to the ty.json schema.

    0.0.21release notes

  • The LSP server adds support for the protocol's type hierarchy feature.

    0.0.20release notes

  • Supports _value_ annotations on enum classes.

    0.0.19release notes

  • The LSP server now supports code folding.

    0.0.18release notes

  • Adds the replace-imports-with-any configuration option.

    0.0.18release notes

  • Adds the --output-format option to ty version.

    0.0.18release notes

  • Adds auto-import support for symbols shown in inlay hints.

    0.0.17release notes

  • Adds type-checking support for generic protocols.

    0.0.17release notes

  • Adds support for the junit output format via --output-format=junit.

    0.0.17release notes

  • Adds support for using typing.Self in attribute annotations.

    0.0.17release notes

  • The CLI now supports configuring output format with the TY_OUTPUT_FORMAT environment variable.

    0.0.16release notes

  • Configuration adds a mechanism to ignore, warn about, or select all rules.

    0.0.15release notes

  • Type expressions now support type[None].

    0.0.15release notes

  • Adds the unused-type-ignore-comment rule.

    0.0.15release notes

  • Adds the allowed-unresolved-imports setting.

    0.0.14release notes

  • Adds a return code for functions with stub bodies and non-None return annotations.

    0.0.14release notes

  • Adds support for subscripts on intersections.

    0.0.14release notes

  • Supports passing typename and field_names by keyword argument to collections.namedtuple() calls.

    0.0.13release notes

  • Supports overriding respect-type-ignore-comments.

    0.0.13release notes

  • Adds the --add-ignore CLI option.

    0.0.10release notes

  • Adds support for comparisons between variable-length tuples.

    0.0.10release notes

  • The LSP server gains an option to disable syntax errors.

    0.0.8release notes

  • Supports custom builtins via __builtins__.pyi.

    0.0.6release notes

  • Adds diagnosticMode: off to disable diagnostics while retaining features such as Go To Definition.

    0.0.6release notes

  • Supports type inference between protocol instances.

    0.0.6release notes

  • Adds the respect-type-ignore-comments configuration option.

    0.0.6release notes

  • Adds the ty.configuration LSP option.

    0.0.6release notes

  • Adds the ty.configurationFile LSP option.

    0.0.6release notes

  • Adds the --force-exclude CLI option.

    0.0.5release notes

Performance 108

  • Skips enum-complement recognition when there are no exclusions.

    0.0.107release notes

  • Avoids exponential constraint search when inferring generic constructors.

    0.0.106release notes

  • Skips repeated validation lookups for checked overloads.

    0.0.105release notes

  • Speeds up find references in workspaces with many unicode files.

    0.0.105release notes

  • Speeds up materialization of nested generic types.

    0.0.105release notes

  • Avoids definition lookups during recursive TypedDict comparisons.

    0.0.105release notes

  • Avoids tracking ordinary instances twice during type searches.

    0.0.105release notes

  • Skips union comparisons for unrelated nominal classes, improving memory usage.

    0.0.105release notes

  • Avoids cubic narrowing for enum OR patterns, improving performance when checking these patterns.

    0.0.98release notes

  • Comparisons of deeply nested tuples are faster.

    0.0.97release notes

  • Prevents exponential memory growth when narrowing unions of intersections by equality.

    0.0.96release notes

  • Reuse runtime operands in eager union annotations.

    0.0.93release notes

  • Reuse exception checkpoints when a new place is read.

    0.0.93release notes

  • Optimize Linux x86-64 ty releases with LLVM BOLT.

    0.0.93release notes

  • Avoid replaying conditions in long boolean expressions.

    0.0.93release notes

  • Speed up match narrowing over large unions.

    0.0.93release notes

  • Index nominal union alternatives.

    0.0.93release notes

  • Record predicate truthiness alongside expression inference.

    0.0.93release notes

  • Skip predicates that cannot affect narrowing.

    0.0.93release notes

  • Normalize runtime unions on demand.

    0.0.93release notes

  • Reuse tuple pattern analysis work.

    0.0.93release notes

  • Short-circuit comparisons involving top and bottom callable signatures.

    0.0.92release notes

  • Reuse class member lookups when checking overrides.

    0.0.92release notes

  • Reuse each generic context's inferable type variables.

    0.0.92release notes

  • Avoid redundant work when checking inherited attributes.

    0.0.92release notes

  • Skip inferred writes when a declaration determines an instance member.

    0.0.92release notes

  • Check for instance storage without inferring method assignments.

    0.0.92release notes

  • Skip method signature inference for concrete decorator results.

    0.0.92release notes

  • Check non-recursive protocol members before recursive ones.

    0.0.92release notes

  • Collect receiver annotations once per class.

    0.0.92release notes

  • Compares protocol receiver restrictions before binding.

    0.0.91release notes

  • Pauses caused by clearing cached ASTs are mitigated in more language server operations.

    0.0.90release notes

  • Speeds up generic class-pattern narrowing by skipping impossible intersection comparisons.

    0.0.89release notes

  • Avoids constructing nominal complements.

    0.0.87release notes

  • Optimizes system path equality.

    0.0.87release notes

  • Constraints are shared in retained sequent maps to improve memory usage.

    0.0.86release notes

  • Reuses cached type alias inference for diagnostics.

    0.0.83release notes

  • Fuel management in the constraint solver is optimized.

    0.0.82release notes

  • Strings in dependency metadata are shared to improve memory usage.

    0.0.81release notes

  • Rendered union elements are reused when displaying types.

    0.0.81release notes

  • Reduces retained AST memory by shrinking expressions.

    0.0.81release notes

  • Avoids redundant superclass member inference.

    0.0.81release notes

  • Distributes len inference over unions.

    0.0.80release notes

  • Adds a fast path for concrete literal intersections.

    0.0.80release notes

  • Avoids repeated subtyping checks for materialized recursive protocols.

    0.0.78release notesrelease notes

  • Recursive protocol checks for nested type variables are optimized.

    0.0.78release notes

  • Repeated inference is avoided for literal union call results.

    0.0.77release notes

  • Rejects impossible eager protocol comparisons early.

    0.0.76release notes

  • Avoids cubic narrowing with repeated assignments and context managers.

    0.0.76release notes

  • Avoids repeated traversal of shared alias arguments.

    0.0.76release notes

  • Infers function parameter default types lazily.

    0.0.74release notes

  • Optimizes inherited recursive protocol comparisons.

    0.0.74release notes

  • Avoids exponential narrowing of gradual string-literal unions.

    0.0.72release notes

  • ty avoids deriving sequents for type variables with concrete bounds.

    0.0.71release notes

  • Avoids exponential slowdown when copying narrowed TypedDict unions.

    0.0.67release notes

  • Avoids quadratic inference for large literal unions.

    0.0.65release notes

  • Improves importer performance.

    0.0.64release notes

  • Avoids repeated inference when copying mixed TypedDict unions.

    0.0.64release notes

  • Avoids expanding optional enum comparisons.

    0.0.64release notes

  • Improves union and intersection builder performance.

    0.0.64release notes

  • Avoids exponential narrowing for optional dynamic match subjects.

    0.0.63release notes

  • Caches non-terminal-call reachability prefixes.

    0.0.62release notes

  • Caches protocol Self binding.

    0.0.62release notes

  • Caches sparse reachability checkpoints.

    0.0.62release notes

  • Defers statement-call narrowing gates.

    0.0.62release notes

  • Overloaded protocol method returns are compared pairwise.

    0.0.60release notes

  • The fast path now supports both upper and lower bounds.

    0.0.60release notes

  • Self type scans are skipped for non-generic instances.

    0.0.60release notes

  • Parallel jobs are batched when finding references.

    0.0.57release notes

  • Avoids exponential invariant constraint paths.

    0.0.57release notes

  • Uses cached class literal lookup for is_subclass_of.

    0.0.57release notes

  • Reduces overhead for bound typevar identity.

    0.0.56release notes

  • Avoids exponential reachability analysis for OR patterns.

    0.0.56release notes

  • Enum comparisons in equality evaluation are optimized.

    0.0.55release notes

  • Filesystem concurrency is improved.

    0.0.55release notes

  • Compacts indexed AST node storage.

    0.0.51release notes

  • Discards dead DNF branches during intersection building.

    0.0.51release notes

  • Narrowing large unions is faster.

    0.0.50release notes

  • Module resolution is faster for projects with many search paths.

    0.0.50release notes

  • Avoids redundant constraint saturation work.

    0.0.48release notes

  • Caching is added for pattern match narrowing, improving performance.

    0.0.44release notes

  • Avoids redundant work for empty collection context.

    0.0.42release notes

  • Avoids exponential blow-up during fall-through narrowing.

    0.0.39release notes

  • Speeds up include filtering for projects with many literal include patterns.

    0.0.39release notes

  • Uses an incremental file walk when .gitignore changes.

    0.0.38release notes

  • Reduces CPU usage when switching between large changesets.

    0.0.37release notes

  • Bounds loop-header analysis for large loops.

    0.0.36release notes

  • Cross-file find-references searches use multithreading to run faster.

    0.0.35release notes

  • Signature checking is optimized based on the number of arguments.

    0.0.33release notes

  • Memoizes binary operator return types.

    0.0.32release notes

  • Gates protocol compatibility checks on member count.

    0.0.32release notes

  • Avoids excessive memory usage for dataclasses with many fields.

    0.0.31release notes

  • Fixes a performance regression when narrowing on a larger Literal type.

    0.0.26release notes

  • Avoids duplicated work during multi-inference.

    0.0.23release notes

  • Conservative narrowing places are optimized.

    0.0.16release notes

  • Caches ClassType::nearest_disjoint_base.

    0.0.13release notes

  • Improves completion performance.

    0.0.13release notes

  • Optimizes union building for unions with many enum-literal members.

    0.0.11release notes

  • Improves UnionBuilder performance by using Type::is_redundant_with instead of Type::is_subtype_of calls.

    0.0.11release notes

  • Optimizes intersections with a single negated element.

    0.0.10release notes

  • Optimizes negated types.

    0.0.10release notes

  • The LSP server limits returned completions to reduce lag.

    0.0.8release notes

  • Speeds up bidirectional type-checking involving large unions by avoiding narrowing on non-generic calls.

    0.0.5release notes

  • Simplifies inferred types by avoiding storage of multi-inference attempts.

    0.0.5release notes

  • Improves union builder performance.

    0.0.5release notes

  • Performance is improved for large match statements.

    0.0.4release notes

  • Disjointness for TypedDicts is implemented, significantly speeding up checking of code that uses pydantic.

    0.0.4release notes

  • Type checking is faster.

    0.0.2release notes

Behavior and default changes 285

  • Shows progress and handles Ctrl-C during initial file indexing.

    0.0.107release notes

  • Reports workspace diagnostics while scripts initialize.

    0.0.106release notes

  • Completions are suppressed while typing multiline import aliases.

    0.0.104release notes

  • ty warns by default when there is a single overload.

    0.0.102release notes

  • Missing and inconsistent overload implementation diagnostics are separate.

    0.0.100release notes

  • Supports shadowing methods on instances.

    0.0.98release notes

  • PEP 723 scripts inherit project settings and overrides.

    0.0.98release notes

  • Diagnostics on recoverable invalid globs have lower severity.

    0.0.97release notes

  • Type arguments are inferred from generic TypedDict values passed to functions.

    0.0.96release notes

  • Type arguments are inferred using constraints from the whole call.

    0.0.96release notes

  • Places argument name inlay hints before grouping parentheses.

    0.0.95release notes

  • Skip scanning for scripts at startup and reload when uv script environments are disabled.

    0.0.92release notes

  • Generalizes nested types in inferred return types.

    0.0.91release notes

  • Inlay hints containing stub-only types are not inserted.

    0.0.90release notes

  • ParamSpecs can be inferred from call-wide constraints.

    0.0.90release notes

  • ty supports inferring return types for unannotated functions and methods.

    0.0.89release notes

  • A bare generic class name is specialized when used in a type[...] type context.

    0.0.87release notes

  • Inherited dataclass field converters are specialized.

    0.0.86release notes

  • Empty collection branches are inferred from nonempty literals.

    0.0.86release notes

  • Recursion guards are avoided for non-generic nominal targets.

    0.0.86release notes

  • Promotes bounded type variables to declared constraints.

    0.0.85release notes

  • Import completions in the LSP server now support namespace packages.

    0.0.85release notes

  • Infers nominal generic specializations from bounded type variables.

    0.0.85release notes

  • Ruff and ty now prefer existing @ paths over response files when resolving command-line arguments.

    0.0.85release notes

  • The LSP server refreshes Python settings when virtual environments change.

    0.0.85release notes

  • Rendered code is contained within Markdown fences in LSP output.

    0.0.85release notes

  • Specializes Self bounds through generic type aliases.

    0.0.85release notes

  • Inherits annotations for unannotated subclass defaults.

    0.0.85release notes

  • Refreshes uv project metadata when uv files change, so ty can use up-to-date project information.

    0.0.85release notes

  • Callable signatures are now inferred from bounded type variables.

    0.0.84release notes

  • Membership expressions with constant values in inline list and set literals can now be inferred as literal booleans.

    0.0.84release notes

  • Uses subtyping when determining constraint-set implication.

    0.0.84release notes

  • External files use workspace editor settings.

    0.0.84release notes

  • Projects for external files are selected using import search paths.

    0.0.84release notes

  • This diagnostic is disabled by default.

    0.0.84release notes

  • The LSP server now supports requests against closed documents.

    0.0.84release notes

  • Inference now works through optional generic containers in the legacy solver.

    0.0.84release notes

  • Includes required imports in every inlay hint.

    0.0.83release notes

  • Eagerly binds unused Self receivers.

    0.0.83release notes

  • Allows slots to override abstract properties.

    0.0.83release notes

  • Generalizes receiver binding for wrapped callables.

    0.0.83release notes

  • Conditional literals are inferred from peers in unspecialized contexts.

    0.0.82release notes

  • Dependency lints are supported when using this CLI option.

    0.0.82release notes

  • Generic elements are inferred from gradual tuples.

    0.0.82release notes

  • Experimental intersection syntax is allowed in PEP 695 aliases.

    0.0.82release notes

  • LSP string literal completions are filtered by the text already typed.

    0.0.82release notes

  • Preview behavior ignores the Python version from uv metadata.

    0.0.82release notes

  • Default exclude patterns are anchored at the project root.

    0.0.81release notes

  • Class objects are default-specialized during meta-protocol checks.

    0.0.81release notes

  • Existing autofixes receive descriptive titles in the LSP server.

    0.0.80release notes

  • Tuple variance is inferred from the full tuple specification and more precisely.

    0.0.80release notes

  • Narrows types with ordered length comparisons.

    0.0.79release notes

  • Infers variance through recursive protocols.

    0.0.79release notes

  • Lambda functions are always considered truthy.

    0.0.78release notes

  • In preview, workspace metadata is refreshed when dependencies change.

    0.0.78release notes

  • Recursive receiver inference is stabilized.

    0.0.77release notes

  • Simplifies intersections with subtype-related generic specializations.

    0.0.76release notes

  • Infers lambda parameters through callable type aliases.

    0.0.76release notes

  • Superseded queued uv requests are now canceled.

    0.0.76release notes

  • Treats recursive types as fallback cycles only when they have unbounded specializations.

    0.0.76release notes

  • Warns when uv metadata cannot support dependency checks.

    0.0.76release notes

  • Refreshes uv project metadata in the background.

    0.0.76release notes

  • Signatures inferred from bound receivers are expanded.

    0.0.75release notes

  • Tuple type parameters are inferred from union arguments.

    0.0.75release notes

  • Mixed gradual tuple assignability is supported with TypeVarTuple.

    0.0.75release notes

  • On Python 3.14 and newer, typing.Union is treated as a class.

    0.0.75release notes

  • Variance is inferred through nonrecursive protocol references.

    0.0.75release notes

  • Specializes type variables determined by bound receivers.

    0.0.73release notes

  • Infers generic protocols from class objects.

    0.0.73release notes

  • Supports unpacking tuple type aliases.

    0.0.73release notes

  • The language server no longer prefers unsafe fixes.

    0.0.73release notes

  • PEP 723 scripts can now be checked in isolation.

    0.0.72release notes

  • Pydantic accepts enum members for lax string and integer fields.

    0.0.72release notes

  • TypeVarTuple is supported in call binding.

    0.0.72release notes

  • ty models exception flow with operation checkpoints.

    0.0.71release notes

  • ty infers type variables through nominal type[...] parameters.

    0.0.71release notes

  • Supports Annotated inside type[...].

    0.0.70release notes

  • The LSP server enables and downranks auto-import completions from stub-only modules.

    0.0.70release notes

  • Recursive gradual type alias materialization is stabilized.

    0.0.70release notes

  • Variance is inferred through type[T].

    0.0.70release notes

  • Generic-class narrowing with isinstance is more gradual by default; for example, list narrows to list[Unknown] instead of Top[list[Unknown]].

    0.0.69release notes

  • Numeric tower displays are simplified, such as displaying float instead of int | float.

    0.0.68release notes

  • Infers generic TypedDicts from unpacked TypedDicts.

    0.0.67release notes

  • Infers generic TypedDicts through synthesized constructor signatures.

    0.0.67release notes

  • ty recognizes Pydantic models installed on extra search paths.

    0.0.66release notes

  • The LSP server triggers signature help after completing a callable with parentheses.

    0.0.66release notes

  • Type checking now prefers static solutions for constrained TypeVar instances.

    0.0.65release notes

  • Type checking now supports materialized class type expressions.

    0.0.65release notes

  • Mutation of private attributes on frozen Pydantic models is now allowed.

    0.0.65release notes

  • When adding a ty: ignore comment, the option now inserts a space after the colon.

    0.0.64release notes

  • The LSP renders NumPy docstrings as structured Markdown.

    0.0.64release notes

  • Allows unresolved virtual-environment home paths when they are unused.

    0.0.64release notes

  • Equality narrowing now works across non-final classes.

    0.0.63release notes

  • Interpolated string literals can now be promoted to str.

    0.0.63release notes

  • When match narrowing infers a variable as A & B, its attribute is inferred as the intersection of the corresponding attribute types.

    0.0.63release notes

  • Reuses applicable own-line suppressions when adding ignores.

    0.0.62release notes

  • Accepts gradual constrained TypeVar solutions.

    0.0.62release notes

  • Prefers the innermost inline suppression.

    0.0.62release notes

  • Contextually infers custom __setattr__ assignments.

    0.0.62release notes

  • Gates TypedDict PEP 728 parameters by Python version.

    0.0.62release notes

  • Pydantic field metadata is collected through subscripted generic Annotated aliases.

    0.0.61release notes

  • The LSP server renders Google docstrings as structured Markdown.

    0.0.61release notes

  • Narrows types based on inline list and set membership checks.

    0.0.61release notes

  • Infers isinstance results for aliases and type variables.

    0.0.61release notes

  • Infers isinstance results for fixed class tuples.

    0.0.61release notes

  • Narrows tagged unions based on tag truthiness.

    0.0.61release notes

  • ty now supports class objects that satisfy instance-method protocols.

    0.0.60release notes

  • Protocol checking derives setter domains for descriptors.

    0.0.60release notesrelease notes

  • Exact-length narrowing is projected through TypeVars.

    0.0.60release notes

  • Generic call inference is now unified.

    0.0.60release notes

  • Suppression comments can now be placed on their own line.

    0.0.60release notes

  • Pydantic support now recognizes populate_by_name.

    0.0.60release notes

  • Pydantic support now recognizes field metadata in Annotated.

    0.0.59release notes

  • Pydantic support now handles custom initializers.

    0.0.59release notesrelease notes

  • Type checking allows unsound equality-based narrowing for builtins.

    0.0.59release notes

  • Treats BaseSettings fields as optional by default.

    0.0.58release notes

  • Recognizes frozen Pydantic models via configuration.

    0.0.58release notes

  • Gates membership narrowing on __contains__ semantics.

    0.0.58release notes

  • Infers metaclass-declared attributes on class instances.

    0.0.58release notes

  • Ignores private attributes in Pydantic models.

    0.0.58release notes

  • Match subjects are narrowed through structural patterns.

    0.0.57release notes

  • Narrows exact tuples through sequence patterns.

    0.0.56release notes

  • Infers capture types for generic class patterns.

    0.0.56release notes

  • The type checker infers class and mapping pattern bindings.

    0.0.55release notes

  • The LSP server renders full diagnostics in color.

    0.0.55release notes

  • Empty collection constructors are inferred from later uses.

    0.0.55release notes

  • Tracking whether literal iterables are empty affects reachability analysis.

    0.0.55release notes

  • Widens inferred class-valued instance attributes.

    0.0.54release notes

  • Uses assignability for divergent constraints.

    0.0.54release notes

  • Infers definite equality comparison results and mismatched literal comparisons.

    0.0.54release notes

  • Allows replacing ordinary methods with compatible functions.

    0.0.54release notes

  • Ty now infers types for names bound in match patterns.

    0.0.53release notes

  • The LSP server publishes diagnostics for all open files after a single file is saved.

    0.0.52release notes

  • Recognizes exhaustive matches over finite tuples.

    0.0.52release notes

  • Rendering of fix diffs is more concise.

    0.0.52release notes

  • Raises the limit for the number of non-recursive union literals.

    0.0.52release notes

  • Hover renders reStructuredText fields in docstrings as Markdown.

    0.0.52release notes

  • Infers simpler types in complex lambda cycles.

    0.0.51release notes

  • The LSP server respects the client's preferred content format.

    0.0.50release notes

  • Enum literals are supported as tagged-union discriminants.

    0.0.50release notes

  • Non-empty collection literals receive full-scope bidirectional inference.

    0.0.50release notes

  • The checker infers precise values for standard-library enums.

    0.0.50release notes

  • ty now reports redefined legacy TypeVars.

    0.0.49release notes

  • Supports Callable() in match statement class patterns.

    0.0.46release notes

  • Type checking now supports narrowing on tuple match cases.

    0.0.45release notes

  • Type checking now enables narrowing for unions of TypedDict.

    0.0.44release notes

  • A callable type context can implicitly specialize a generic class.

    0.0.43release notes

  • The LSP server suppresses importable completions for names already in scope.

    0.0.43release notes

  • Precise __len__ methods are synthesized for literals.

    0.0.43release notes

  • Type narrowing based on lengths is supported.

    0.0.43release notes

  • Adds support for tagged-union narrowing when the types are nominal.

    0.0.42release notes

  • Type checking now supports disjointness for protocol method members.

    0.0.41release notes

  • Complete enum-literal alias unions are accepted as enums.

    0.0.40release notes

  • Python notebook text documents are treated as Python sources.

    0.0.40release notes

  • Import completions prefer standard-library symbols over same-named symbols from third-party libraries.

    0.0.39release notes

  • When set to 3.9, ty continues to report version-specific syntax errors and other diagnostics despite Python 3.9 no longer receiving full support.

    0.0.39release notes

  • Type inference now supports multi-inference through type aliases.

    0.0.39release notes

  • Type inference now uses full-scope bidirectional inference for unconstrained container literals.

    0.0.39release notes

  • The LSP no longer shows argument inlays for case-insensitive matches or prefix and suffix matches.

    0.0.37release notes

  • Supports partially specialized type context for collection literals.

    0.0.37release notes

  • The LSP server emits folding ranges for an entire block.

    0.0.36release notes

  • Values from custom enum __new__ methods are treated as dynamic.

    0.0.36release notes

  • Path assignment implication checks are hoisted.

    0.0.36release notes

  • Type narrowing is supported on __class__ checks.

    0.0.35release notes

  • Overload consistency diagnostics now include error context.

    0.0.35release notes

  • Mixed constructor inference now includes TypedDict type context.

    0.0.35release notes

  • String key inference now includes TypedDict type context.

    0.0.35release notes

  • A union of homogeneous fixed-length tuples is selectively promoted to a single variadic tuple.

    0.0.35release notes

  • Type narrowing support within walruses is expanded.

    0.0.35release notes

  • Core type checking now supports functools.partial.

    0.0.34release notes

  • ty now shows a diagnostic for an unsupported inferred Python version.

    0.0.34release notes

  • Type narrowing now works with aliased conditional expressions.

    0.0.33release notes

  • When inferred and declared types are mutually assignable, ty now prefers the declared type, avoiding unhelpful Unknown inference while preserving useful narrowing.

    0.0.33release notes

  • Type checking now models short-circuiting control flow in Boolean expressions.

    0.0.33release notes

  • Contextual secondary annotations are now included in more places.

    0.0.33release notes

  • Checks are skipped for gradual vararg calls.

    0.0.33release notes

  • Lambda parameter types are now inferred from Callable type context.

    0.0.33release notes

  • Unions of parameter types are deferred.

    0.0.33release notes

  • [*xs] is now treated as an irrefutable pattern when matching on Sequence.

    0.0.33release notes

  • Dict-literal assignments now support ** unpacking of TypedDict values.

    0.0.33release notes

  • Signatures now support Unpack[TypedDict] in **kwargs.

    0.0.33release notes

  • Uses partially qualified names when reporting diagnostics about bad calls to methods.

    0.0.32release notes

  • Merges same-file annotations when only a single line separates them.

    0.0.32release notes

  • Allows if statements in TypedDict bodies.

    0.0.32release notes

  • Completion results rank symbols from typing and collections above third-party re-exports.

    0.0.30release notes

  • dataclass_transform metadata is inherited from metaclass bases.

    0.0.30release notes

  • “Rule xyz is enabled”-style hints are hidden unless verbose mode is specified.

    0.0.30release notes

  • LSP diagnostic messages now show info subdiagnostics.

    0.0.30release notes

  • The str constructor is no longer special-cased.

    0.0.30release notes

  • Partially stringified type annotations such as type["MyClass"] are supported.

    0.0.30release notes

  • Infers lambda expressions using Callable type context.

    0.0.27release notes

  • Supports dataclass field converters in type checking.

    0.0.26release notes

  • Diagnostics in unreachable code are unconditionally silenced.

    0.0.26release notes

  • Adds narrowing support for extended walrus targets.

    0.0.25release notes

  • Emits reveal_type diagnostics in unreachable code.

    0.0.25release notes

  • Infers types for yield expressions.

    0.0.25release notes

  • Discovers dist-packages in /usr/local/lib on Debian and Ubuntu.

    0.0.24release notes

  • The error code is ignored by default after errors for possibly missing submodules were split into a separate code.

    0.0.23release notes

  • Supports enum member access through enum instances and members.

    0.0.22release notes

  • Eagerly narrows types associated with keys even when a dict literal is a subexpression inside list or tuple literals.

    0.0.22release notes

  • Subtypes of LiteralString can be narrowed using equality checks.

    0.0.22release notes

  • None is promoted to None | Unknown in invariant contexts.

    0.0.22release notes

  • The installer prefers downloading releases from Astral's mirror over GitHub.

    0.0.22release notes

  • Infers t | {"foo": int} as TD when t is an instance of a TypedDict with a foo: int key.

    0.0.22release notes

  • Adds a diagnostic when a TypeVar specializes a ParamSpec, or a ParamSpec specializes a TypeVar.

    0.0.21release notes

  • Supports narrowing in ternary expressions.

    0.0.21release notes

  • Adds partial support and validation for Unpack when used with tuple types.

    0.0.20release notes

  • Reduces the threshold for upcasting Literal types in unions to nominal-instance types when the union is recursively defined.

    0.0.19release notes

  • Adds basic type narrowing for mapping patterns in match statements.

    0.0.19release notes

  • Renders subdiagnostics when --output-format=github is specified.

    0.0.19release notes

  • Diagnostics are less verbose for classes with many abstract methods.

    0.0.18release notes

  • Test-related symbols from non-first-party packages are excluded from auto-import completions.

    0.0.18release notes

  • A bytes-literal type is now treated as a subtype of a Sequence of its constituent integer values.

    0.0.18release notes

  • Configuration paths now support shellexpand.

    0.0.18release notes

  • For pathologically large control-flow graphs, all code paths are treated as ambiguously reachable.

    0.0.18release notes

  • Bit-shift operations on integer literals now infer more precise types.

    0.0.18release notes

  • Calls to intersection types are now supported.

    0.0.18release notes

  • Interpolated f-strings composed of LiteralString values are now inferred as LiteralString.

    0.0.18release notes

  • A call to a generic function returning Never now terminates control flow.

    0.0.18release notes

  • String-literal arguments can now match an Iterable parameter during type variable inference.

    0.0.18release notes

  • Narrowing is now supported from a Callable type returning a TypeGuard type.

    0.0.18release notes

  • Includes conditional symbols such as datetime.UTC in auto-import in more cases.

    0.0.17release notes

  • Performs control-flow analysis in loops, allowing ty to account for loop control flow when checking types.

    0.0.17release notes

  • Ranks deprecated names lower in auto-import completions.

    0.0.17release notes

  • Uses os.name checks as the basis for type narrowing and reachability analysis.

    0.0.17release notes

  • Includes overload declarations in find-references results.

    0.0.17release notes

  • Allows dependency discovery in system Python environments.

    0.0.17release notes

  • Applies workspace settings to virtual files.

    0.0.17release notes

  • The attribute narrowing condition is relaxed to support deeper-nested attribute type narrowing.

    0.0.16release notes

  • The checker now narrows chained operators.

    0.0.16release notes

  • Comparison methods such as __gt__ are supported when a parameter is annotated with a Literal type.

    0.0.16release notes

  • Constrained TypeVar compatibility is supported across function boundaries.

    0.0.16release notes

  • Constructor argument types are now inferred using type context.

    0.0.16release notes

  • Recognizing __dataclass_transform__ adds support for SQLModel.

    0.0.16release notes

  • Deprecated functions and classes receive lower rankings in LSP completion results.

    0.0.16release notes

  • Diagnostics are supported in newly created files inside neovim.

    0.0.16release notes

  • The checker narrows equality subscripts on either operand.

    0.0.16release notes

  • The checker narrows both left- and right-hand operands where possible.

    0.0.16release notes

  • The checker now supports partially specialized type context.

    0.0.16release notes

  • When no environment is found, ty falls back to python3 found in $PATH.

    0.0.16release notes

  • Invalid-argument-type and invalid-assignment diagnostics now include a hint when a variable is annotated with a type from the numbers module.

    0.0.15release notes

  • Infers ParamSpec from class constructors for callable protocols.

    0.0.15release notes

  • Rename operations now include property setters and deleters.

    0.0.15release notes

  • Self-referential imports are allowed outside the global scope.

    0.0.15release notes

  • The ./src search path is added only when ./src/__init__.py(i) does not exist.

    0.0.15release notes

  • A single ty LSP server instance can support multiple workspace folders.

    0.0.15release notes

  • Type inlay hints are suppressed for assignments whose names begin with an underscore.

    0.0.14release notes

  • Supports dict literals and dict() calls as default values for parameters with TypedDict types.

    0.0.14release notes

  • Infers that TypedDict types with at least one required key are always truthy.

    0.0.14release notes

  • Adds support for starred unpacking in class bases.

    0.0.13release notes

  • Adds bidirectional inference for comprehensions.

    0.0.13release notes

  • Adds basic type-checking support for overloads in ParamSpec.

    0.0.13release notes

  • Shows the final search path instead of “and 1 more paths”.

    0.0.13release notes

  • Adds narrowing for bool and byte subscripts.

    0.0.13release notes

  • Adds narrowing for negative subscript indexing.

    0.0.13release notes

  • Allows ... as a default value for any parameter when the function is in an if TYPE_CHECKING block.

    0.0.13release notes

  • Supports if type(x) is Y narrowing for types other than class-literal types.

    0.0.13release notes

  • Adds right-hand-side narrowing for if Foo is type(x) expressions.

    0.0.13release notes

  • Groups type[] elements together when displaying union types.

    0.0.13release notes

  • Adds type-checking support for classes created dynamically with type().

    0.0.12release notes

  • Supports assignment to unions of TypedDicts.

    0.0.12release notes

  • Completion ranking is improved based on origin and exact match.

    0.0.11release notes

  • Top-level module symbols are ranked above most other symbols.

    0.0.11release notes

  • Adds support for explicit markdown code fences in docstring rendering.

    0.0.10release notes

  • An include entry for a file without a Python extension, such as myscript, now causes that file to be checked.

    0.0.10release notes

  • Sorts keyword argument completions higher.

    0.0.10release notes

  • Inference now accounts for subtyping, allowing an assigned list literal to infer list[int] when the variable is annotated Iterable[int].

    0.0.9release notes

  • Treat __setattr__ as fallback-only during type checking.

    0.0.9release notes

  • Type checking now narrows tagged unions of tuples when one tuple element has a Literal type.

    0.0.9release notes

  • Type aliases are no longer eagerly expanded via type mappings when unnecessary, so displayed bound-method signatures retain aliases.

    0.0.9release notes

  • Type checking now narrows tagged unions of TypedDicts in match statements.

    0.0.9release notes

  • Type checking now narrows TypedDict unions with not in.

    0.0.9release notes

  • Type checking now supports typing.TypeGuard.

    0.0.9release notes

  • The LSP server detects completion context better when typing in decorator positions.

    0.0.8release notes

  • Supports tuple narrowing based on member checks.

    0.0.7release notes

  • Includes a generic TypedDict's specialization in its display.

    0.0.7release notes

  • Uses Markdown for completions documentation when the LSP client supports it.

    0.0.6release notes

  • Narrows tagged unions of TypedDicts.

    0.0.6release notes

  • Prefers declared types only in non-covariant positions.

    0.0.5release notes

  • The possibly-missing-imports diagnostic is disabled by default.

    0.0.4release notes

  • Type narrowing is now applied to len calls based on the argument size.

    0.0.3release notes

  • The LSP server improves how signatures are rendered in hovers.

    0.0.3release notes

  • Type checking infers TypeVar specializations for Callable types.

    0.0.2release notes

  • Type checking infers more precise types for isinstance calls involving type variables.

    0.0.2release notes

  • This first Beta release is recommended for motivated users to use in production.

    0.0.2release notes

Tooling 117

  • Invalid dataclass __post_init__ signatures are reported by a separate rule.

    0.0.105release notes

  • Hover now shows field docstrings for constructor keyword arguments.

    0.0.96release notes

  • Subsequent checks filter diagnostics matching the baseline from CLI output and show them as hints in the language server.

    0.0.93release notes

  • Abbreviate large nested tuple types in diagnostics and inlay hints.

    0.0.92release notes

  • Point to the expression that makes a type alias invalid, even when the alias is imported.

    0.0.92release notes

  • The LSP server can provide return-type inlay hints.

    0.0.90release notes

  • ty supports uv's nested module ownership metadata.

    0.0.90release notes

  • Reports assignments to individually frozen Pydantic fields.

    0.0.88release notes

  • Improves the display of distinct string literal types.

    0.0.87release notes

  • The LSP server shows documentation for annotation operators on hover.

    0.0.86release notes

  • The LSP server completes string keys from dictionary initializers.

    0.0.84release notes

  • Improves diagnostics for async generator stubs.

    0.0.83release notes

  • Improves primary diagnostic annotations for redundant-condition and redundant-condition-strict diagnostics.

    0.0.83release notes

  • Adds rules detecting suspicious uses of Callable, Iterable, Iterator, or Generator types in a boolean context.

    0.0.83release notes

  • Expands unreachable-code annotations for redundant conditions.

    0.0.83release notes

  • Preview CLI watch mode watches script dependencies.

    0.0.82release notes

  • The language server watches script dependencies.

    0.0.82release notes

  • LSP can find member references across files.

    0.0.82release notes

  • LSP can find parameter references across files.

    0.0.82release notes

  • Rules add subdiagnostics warning about reachability implications.

    0.0.82release notes

  • Diagnostics for unimplemented abstract members are clarified.

    0.0.82release notes

  • Diagnostics annotate unreachable code caused by boolean operands, and annotations extend to while, assert, and match statements.

    0.0.82release notes

  • An autofix is added for unused awaitables.

    0.0.82release notes

  • Suggests variable-length tuple annotations for redundant conditions.

    0.0.79release notes

  • Adds Find references support for pytest fixtures.

    0.0.76release notes

  • Checks direct dependencies in PEP 723 scripts.

    0.0.76release notes

  • Synchronizes PEP 723 script environments in the language server.

    0.0.76release notes

  • Highlights PEP 723 script metadata as TOML in the LSP server.

    0.0.76release notes

  • Moves script environment initialization to the CLI and LSP.

    0.0.76release notes

  • More diagnostics have autofixes available.

    0.0.75release notes

  • The CLI can initialize environments for PEP 723 scripts.

    0.0.75release notes

  • The LSP server supports Go to Definition for pytest fixtures.

    0.0.75release notes

  • The type checker resolves fixtures through conftest.

    0.0.75release notes

  • Highlights declarations in invalid-assignment diagnostics.

    0.0.74release notes

  • Improves LiteralString suggestions in string annotations.

    0.0.74release notes

  • The type checker now models context managers that suppress exceptions.

    0.0.73release notes

  • ty diagnoses invalid __getattribute__ calls.

    0.0.71release notes

  • ty diagnoses invalid descriptor __get__ calls.

    0.0.70release notes

  • ty diagnoses invalid __getattr__ calls.

    0.0.70release notes

  • The checker suggests closing open TypedDict types to make them compatible with Mapping.

    0.0.68release notes

  • ty detects when these methods do not return awaitables.

    0.0.66release notes

  • ty improves the error context reported for incompatible callable signatures.

    0.0.66release notes

  • The LSP server indexes with-statement targets as symbols, making them available to symbol-based language features.

    0.0.66release notes

  • IDE features now support comprehension walruses.

    0.0.65release notes

  • Adds a lint rule for combining abstract and final decorators.

    0.0.64release notes

  • The CLI now discovers uv workspace roots.

    0.0.64release notes

  • ty warns about extra arguments that are immediately discarded by Pydantic.

    0.0.60release notes

  • Improves the diagnostic context for protocol attributes.

    0.0.58release notes

  • Adds assignability context to upper-bound diagnostics.

    0.0.58release notes

  • Adds typeshed stub support for builtins.sentinel.

    0.0.54release notes

  • Adds a go-to destination for Divergent in the LSP server.

    0.0.52release notes

  • The LSP server suggests keyword-only arguments between variadic parameters.

    0.0.51release notes

  • Adds the missing-type-argument lint rule to report missing type arguments.

    0.0.45release notes

  • The LSP server now shows a type alias's value on hover.

    0.0.44release notes

  • Hovering over a keyword-passed argument name displays documentation for its matching parameter.

    0.0.41release notes

  • ty_extensions now uses TypeForm.

    0.0.41release notes

  • Diagnostics now include a subdiagnostic help message about incompatible variance.

    0.0.40release notes

  • Hovering over an inline literal string in an IDE now shows LiteralString.

    0.0.40release notes

  • The LSP server now classifies property declarations in semantic tokens.

    0.0.39release notes

  • The LSP server adds a Quick Fix to remove redundant casts.

    0.0.39release notes

  • Adds TypedDict key completions in incomplete, anonymous contexts.

    0.0.36release notes

  • The LSP server classifies TypeVar semantic tokens as type parameters.

    0.0.36release notes

  • The language server now emits folding ranges for multi-line block headers.

    0.0.35release notes

  • JUnit diagnostics now include severity.

    0.0.35release notes

  • The LSP server now supports Annotated metadata in semantic tokens.

    0.0.34release notes

  • The LSP server now provides hover support for PEP 695 type aliases.

    0.0.34release notes

  • The LSP server suggests string literals based on the expected type.

    0.0.34release notes

  • The LSP server supports Go-to Definition, Go-To Declaration, and Find References for these initializers.

    0.0.34release notes

  • Attribute assignment diagnostics now include error context.

    0.0.33release notes

  • Detects invalid overrides between ClassVar and instance attributes.

    0.0.33release notes

  • Diagnostics now include error context for invalid-return-type.

    0.0.33release notes

  • Diagnostics now include error context for invalid-yield.

    0.0.33release notes

  • Keyword argument inlay hints can now be baked into source code.

    0.0.33release notes

  • Go-to definition is now supported for literal enum members shown in inlay hints.

    0.0.33release notes

  • Improves error diagnostics for assigning TypedDict values to dict.

    0.0.33release notes

  • Shows error context for assignability diagnostics.

    0.0.32release notes

  • The LSP server dims unreachable code in IDEs.

    0.0.32release notes

  • Syntax highlighting of call arguments uses the expected kind of object for the parameter.

    0.0.30release notes

  • Pedantic lints about badly named types are more consistent.

    0.0.30release notes

  • Semantic tokens now use type-form syntax highlighting for type alias values in IDEs.

    0.0.30release notes

  • LSP support for TypedDict constructors is improved by synthesizing __init__.

    0.0.30release notes

  • The LSP server shows a class's constructor signature when you hover over the class.

    0.0.28release notes

  • Diagnostics for reassigned Final variables now show where the variable was declared as Final.

    0.0.27release notes

  • Unused bindings are greyed out in the editor.

    0.0.27release notes

  • Adds support for typing.Concatenate in type checking.

    0.0.26release notes

  • Adds a diagnostic hint for invalid assignments involving invariant generics.

    0.0.25release notes

  • Adds precisely typed overloads for TypedDict update.

    0.0.25release notes

  • Clarifies that from __future__ import annotations only stringifies type annotations.

    0.0.23release notes

  • Provides more precise types for an enum's name and value.

    0.0.21release notes

  • Adds a lint rule for invalid enum member annotations.

    0.0.21release notes

  • Adds a diagnostic for an unused awaitable.

    0.0.21release notes

  • Adds a diagnostic for combining Final and ClassVar.

    0.0.18release notes

  • Adds a diagnostic for invalid class patterns in match statements.

    0.0.18release notes

  • Adds hover and go-to-declaration support for subscript literals in the LSP server.

    0.0.17release notes

  • Adds an autofix that moves Generic[] to the end of the bases list.

    0.0.16release notes

  • Return-type inference for struct.unpack is now more precise.

    0.0.16release notes

  • Adds a diagnostic when a variable is declared as Final but never has any bindings.

    0.0.15release notes

  • Adds a diagnostic for invalid dataclass field orders.

    0.0.15release notes

  • Detects invalid isinstance() and issubclass() calls against TypedDict classes.

    0.0.15release notes

  • Adds a diagnostic for overridden comparison dunder methods on ordered dataclasses.

    0.0.15release notes

  • Validates signatures of dataclass __post_init__ methods.

    0.0.15release notes

  • The diagnostic can suggest using list instead of List.

    0.0.15release notes

  • Adds a diagnostic for failed assert_type() calls where the actual type is a subtype of the named type but cannot be spelled in a type expression.

    0.0.14release notes

  • Invalid assignment diagnostics now provide type context.

    0.0.14release notes

  • Generic Callable types now include type parameters in their display.

    0.0.12release notes

  • Adds a diagnostic to catch generic enums.

    0.0.12release notes

  • Adds diagnostics for argument mismatches in __init_subclass__.

    0.0.12release notes

  • Adds type-checking support for functional namedtuple creation.

    0.0.12release notes

  • Adds diagnostics that validate TypeIs and TypeGuard definitions.

    0.0.12release notes

  • Offers completions for T when a value has type Unknown | T.

    0.0.10release notes

  • Adds type-checking support for @total_ordering.

    0.0.10release notes

  • The LSP server now provides autocomplete suggestions for keyword arguments in class statements.

    0.0.9release notes

  • Adds a dedicated diagnostic for TypedDict deletions.

    0.0.7release notes

  • The LSP server classifies docstrings in semantic tokens for syntax highlighting.

    0.0.5release notes

  • The LSP server now supports attribute docstrings.

    0.0.4release notes

  • The LSP server improves syntax highlighting of constants.

    0.0.2release notes

  • The LSP server improves highlighting of special type syntax in hovers.

    0.0.2release notes

Fixes and other changes 959

  • Fixes a hang when specializing generic constructors.

    0.0.107release notes

  • Isolates uv-managed scripts from the project environment.

    0.0.107release notes

  • Synchronizes script environments when opening a file with diagnosticMode set to openFilesOnly.

    0.0.106release notes

  • Fixes variance inference for frozen Pydantic models on Python 3.12 and earlier.

    0.0.106release notes

  • Prevents stack overflow while checking a generic base initializer.

    0.0.106release notes

  • Preserves fixed parameters when comparing gradual callables.

    0.0.106release notes

  • Preserves compatible overloads when partially binding a union argument.

    0.0.106release notes

  • Checks fixed prefixes when assigning ParamSpec callables to gradual Concatenate.

    0.0.106release notes

  • Resolves script file settings independently of uv.

    0.0.106release notes

  • Ignores type context when inferring assert_never arguments.

    0.0.105release notes

  • Avoids preferring inferred attribute types during call inference.

    0.0.105release notes

  • Fixes stale diagnostics when diagnosticMode is set to workspace.

    0.0.105release notes

  • Keeps the language server responsive when its worker queue fills.

    0.0.105release notes

  • Checks protocol member names before specializing the source interface.

    0.0.105release notes

  • Imports are updated when Python package folders are renamed.

    0.0.105release notes

  • Preserves the type context kind when propagating it to nested expressions.

    0.0.105release notes

  • Reuses unpacked field types across TypedDict union candidates.

    0.0.105release notes

  • Skips discarded TypedDict validation diagnostics during union matching.

    0.0.105release notes

  • Completion works after an alias in a parenthesized import.

    0.0.104release notes

  • Class objects are narrowed in equality and membership checks.

    0.0.104release notes

  • Implicit __hash__ = None is respected when a class defines __eq__.

    0.0.104release notes

  • Literals outside a protocol are preserved when simplifying unions.

    0.0.104release notes

  • Infers value types for bare Final and ClassVar.

    0.0.103release notes

  • Fixes a panic that occurred when checking class decorators with inferred return types.

    0.0.103release notes

  • Respects return constraints when promoting literal arguments.

    0.0.103release notes

  • Infers nested classes as read-only attributes.

    0.0.103release notes

  • The LSP server resolves pytest fixtures registered through pytest_plugins.

    0.0.103release notes

  • Preserves inherited value types on repeated bare ClassVar annotations.

    0.0.103release notes

  • Avoids spurious syntax warnings when applying fixes.

    0.0.103release notes

  • Preserves excluded types when inferring type variable upper bounds.

    0.0.103release notes

  • Callable-local type variables are kept out of enclosing constraints.

    0.0.102release notes

  • Descriptor write contracts are preserved in overrides and protocols.

    0.0.102release notes

  • Inference no longer runs away for nested calls with union parameters.

    0.0.102release notes

  • Inferring calls that return recursive aliases no longer causes a stack overflow.

    0.0.102release notes

  • Simplifying recursive wide unions no longer panics.

    0.0.102release notes

  • Unary operators on bounded type variables preserve Self.

    0.0.102release notes

  • Field specializations are no longer narrowed to expanded unions.

    0.0.101release notes

  • Falls back to a workspace-wide watch when file watcher registration fails.

    0.0.101release notes

  • Records exception checkpoints for nested unpacking targets.

    0.0.101release notes

  • Preserves Pydantic strictness through PEP 695 type aliases.

    0.0.101release notes

  • Avoids a panic when checking unions of recursive named tuples.

    0.0.101release notes

  • Preserves the element type when a tuple is passed as a callback.

    0.0.101release notes

  • Preserves distinct bytes keys during narrowing.

    0.0.100release notes

  • Inlay hint edits are offered only for valid annotation targets.

    0.0.100release notes

  • Fixes partial application of ParamSpec decorators.

    0.0.100release notes

  • Explanations now describe why a rule was removed in configuration and ignore comments.

    0.0.100release notes

  • Aliased conditions are invalidated across loop iterations.

    0.0.99release notes

  • Output errors are handled when generating shell completions.

    0.0.99release notes

  • Call argument validation is fixed for variadic parameters.

    0.0.99release notes

  • Comparisons of wide builtin literal unions are bounded.

    0.0.99release notes

  • Preserves baseline matches when a rule is renamed.

    0.0.98release notes

  • Fixes exhaustiveness analysis for class patterns after class identity checks.

    0.0.98release notes

  • Prefers active unnamed Conda and Pixi environments, and skips them during discovery when they don't contain Python.

    0.0.98release notes

  • Fixes handling of conditional types and tuple annotations.

    0.0.98release notes

  • Configuration deserialization no longer fails on conflicting rule names.

    0.0.98release notes

  • Preserves exception types after tuple truthiness checks.

    0.0.98release notes

  • Retains all successful generic call narrowing attempts.

    0.0.98release notes

  • Inferred bytes literals are capped in size during concatenation.

    0.0.97release notes

  • Fixes a panic when expanding outgoing calls in the call hierarchy.

    0.0.97release notes

  • Decorators that replace overrides of final methods are handled.

    0.0.97release notes

  • Django ForeignKey fields are supported as primary keys.

    0.0.97release notes

  • Django OneToOneField fields are supported as primary keys.

    0.0.97release notes

  • Extra-field configuration is respected on Pydantic settings models.

    0.0.97release notes

  • A cycle iteration cutoff is applied across type inference.

    0.0.97release notes

  • Narrowed type variables are preserved in union inference.

    0.0.97release notes

  • An empty VIRTUAL_ENV is ignored.

    0.0.97release notes

  • Hints remain display-only when later positional arguments or *args follow, or when inserting them would create duplicate or invalid keywords.

    0.0.96release notes

  • Resolves class-local names in generic type aliases.

    0.0.96release notes

  • Progress bars now honor color overrides.

    0.0.96release notes

  • Preserves Pydantic field metadata in quoted annotations.

    0.0.96release notes

  • Avoids false redundant-cast diagnostics when casting the result of a generic call.

    0.0.96release notes

  • Fixes a panic when checking protocols involving runtime type aliases.

    0.0.96release notes

  • FORCE_COLOR is respected even when output is piped.

    0.0.96release notes

  • Parenthesizes assignment and generator expressions in argument hint edits.

    0.0.95release notes

  • Uses a trailing ParamSpec default after a TypeVarTuple.

    0.0.95release notes

  • Rejects out-of-scope type variables in PEP 695 pack defaults.

    0.0.95release notes

  • Fixes self-comparison during recursive protocol materialization.

    0.0.95release notes

  • Detects traversal budget exhaustion in products of lower bounds.

    0.0.95release notes

  • Accepts keyword arguments for the name and value parameters.

    0.0.95release notes

  • Accepts another unpacked TypeVarTuple as a default.

    0.0.95release notes

  • Places variable type inlay hints after grouping parentheses.

    0.0.95release notes

  • Prevents a panic on a chained assignment with a missing value.

    0.0.94release notes

  • Prevents a panic when a comprehension filter depends on a later binding.

    0.0.94release notes

  • Prevents a panic when sorting diagnostics that have no source location.

    0.0.94release notes

  • Suppresses invalid-override errors for Django Meta configurations.

    0.0.94release notes

  • Fixes startup on older Linux x86-64 kernels.

    0.0.94release notes

  • Stop synthesizing primary keys for abstract Django models.

    0.0.93release notes

  • Fix narrowing of strings and integers compared with enum members.

    0.0.93release notes

  • Preserve generic callback specializations during return refinement.

    0.0.93release notes

  • Preserve narrowing after guarded match subject captures.

    0.0.93release notes

  • Preserve string literals in comparisons with LiteralString.

    0.0.93release notes

  • Preserve mapping capture types on narrowed subjects.

    0.0.93release notes

  • Preserve caller type variables during nested union inference.

    0.0.93release notes

  • Honor @override on overload implementations in stubs.

    0.0.93release notes

  • Combine constraints from repeated ParamSpecs during type checking.

    0.0.93release notes

  • Fix a hang that could occur when negating recursive unions of instance types.

    0.0.93release notes

  • Fix a panic that could occur when checking truthiness in a loop.

    0.0.93release notes

  • Remove covered exclusions from unions.

    0.0.93release notes

  • Infer Django foreign key <field>_id types from the referenced field.

    0.0.92release notes

  • Recognize get_<field>_display() on Django model fields with choices.

    0.0.92release notes

  • Recognize get_next_by_<field>() and get_previous_by_<field>() on non-nullable Django date and datetime fields.

    0.0.92release notes

  • Preserve generic callback parameters when forwarding overloaded functions through a ParamSpec.

    0.0.92release notes

  • Generic calls with an intersection argument now prefer a more precise solution when safe.

    0.0.91release notes

  • Checks for unsatisfiable bodies before existentially quantifying during generic solving.

    0.0.91release notes

  • Avoids false-positive diagnostics when constrained type variables are inferred from callbacks returning invariant generics with gradual type arguments.

    0.0.91release notes

  • Avoids cancelling requests for unrelated file changes.

    0.0.91release notes

  • Preserves module-discovery fallback when a partial stub package obscures the namespace-package fallback.

    0.0.91release notes

  • Reports all missing @override decorators together.

    0.0.91release notes

  • Fixes stack overflows involving recursive descriptor setter types.

    0.0.91release notes

  • Fixes recursive type materialization.

    0.0.91release notes

  • Return intersections are inferred from correlated call specializations.

    0.0.91release notes

  • Preserves Self when checking universal protocols.

    0.0.91release notes

  • Constructor type variable defaults are deferred.

    0.0.90release notes

  • Recursive descriptor setter checks no longer cause stack overflows.

    0.0.90release notes

  • Read types are preserved for dynamic attributes.

    0.0.90release notes

  • Subclasses can restore hashability when a base class is unhashable.

    0.0.90release notes

  • Negating recursive aliases no longer causes crashes.

    0.0.90release notes

  • Strict signature checks preserve bound receivers.

    0.0.90release notes

  • Keyword arguments to TypeAliasType are validated.

    0.0.90release notes

  • Incompatible union members are filtered during union inference.

    0.0.90release notes

  • Avoids a panic when negating dynamic type aliases.

    0.0.89release notes

  • Reports invalid Generic and Protocol arguments containing nested variadic type variables.

    0.0.89release notes

  • Tuple literal lengths are widened when other collection elements contain nested tuple types.

    0.0.89release notes

  • Fixes checks through bounded or constrained type variables.

    0.0.88release notes

  • Preserves inherited annotations for unannotated subclass attributes when a base has type Any or Unknown.

    0.0.88release notes

  • Detects conflicts hidden by additional base classes.

    0.0.88release notes

  • Improves type inference for intersection arguments to generic functions.

    0.0.88release notes

  • Fixes false errors when overriding object attributes.

    0.0.88release notes

  • Preserves known module owners when uv reports owners outside the resolution.

    0.0.88release notes

  • Preserves common return-type structure when gradual arguments match multiple overloads.

    0.0.88release notes

  • Fixes false missing-argument errors when Pydantic models override inherited attributes with ClassVar.

    0.0.88release notes

  • Avoids panics and hangs involving recursive type aliases and intersections.

    0.0.88release notes

  • Checks upper bounds when inferring type variables from caller type variables.

    0.0.88release notes

  • Identical argument type diagnostics are deduplicated.

    0.0.87release notes

  • Suppression of attribute override diagnostics is respected.

    0.0.87release notes

  • Notebook cell lookups work correctly after cells with cell magics.

    0.0.87release notes

  • Notebook cell positions are clamped to the end of the cell.

    0.0.87release notes

  • Fixes a panic when requesting completions past the end of a notebook's last cell.

    0.0.87release notes

  • Type checking now checks overrides of receiver attribute declarations.

    0.0.87release notes

  • Infers the default for definitely absent keys in closed TypedDict.get calls.

    0.0.87release notes

  • Preserves minimum lengths when unpacking tuple unions.

    0.0.87release notes

  • Unpacking a variable-length argument leaves room for later positional arguments.

    0.0.87release notes

  • Fixes a deadlock when LSP requests arrive before workspace configuration.

    0.0.87release notes

  • Recursive structure in Annotated values is preserved.

    0.0.86release notes

  • The CLI always shows fixes.

    0.0.86release notes

  • Dependency metadata is invalidated when environments change.

    0.0.86release notes

  • Literal types are preserved when dictionary literals are consumed.

    0.0.86release notes

  • Exact exclusions are checked before intersection positives.

    0.0.86release notes

  • Final attribute restrictions are preserved on composite types.

    0.0.86release notes

  • Non-boolean comparison results are preserved for intersections.

    0.0.86release notes

  • Tuple unions are narrowed through truthiness and type checks.

    0.0.86release notes

  • Unicode support is updated to Unicode 17.

    0.0.86release notes

  • Uninhabited truthiness is represented explicitly.

    0.0.86release notes

  • Receiver specializations are preserved when calling unions of bound methods.

    0.0.86release notes

  • Validity type context is solved through constraint sets.

    0.0.86release notes

  • Preserves constrained type-variable failure diagnostics.

    0.0.85release notes

  • The LSP server avoids stale I/O diagnostics when a deleted file is closed.

    0.0.85release notes

  • Avoids reporting disjoint-cast diagnostics when the value could have been inferred as compatible with the cast type using the right type context.

    0.0.85release notes

  • Fixes a stack overflow when inferring dynamic class metaclasses.

    0.0.85release notes

  • Fixes type variable inference for final class objects.

    0.0.85release notes

  • Passes generic context to the call inference solver.

    0.0.85release notes

  • Preserves generic inference errors during diagnostic recovery.

    0.0.85release notes

  • Honors generic property setters when checking protocol compatibility.

    0.0.85release notes

  • Fixes include and exclude pattern anchoring after the project root changes.

    0.0.85release notes

  • Narrows later match cases after guards that are always true.

    0.0.85release notes

  • Bounds how nested callable signatures are displayed in diagnostics.

    0.0.85release notes

  • Validates union operands involving None.

    0.0.85release notes

  • Compares observable notebook state for equality.

    0.0.85release notes

  • Detects recursive alias cycles through intersections.

    0.0.85release notes

  • Avoids panics involving recursive lambda class decorators.

    0.0.85release notes

  • Improves display of string literal types containing Unicode characters or double quotes.

    0.0.85release notes

  • Preserves tuple shapes when slicing NewTypes.

    0.0.85release notes

  • Preserves tuple subclass identity during type expansion.

    0.0.85release notes

  • Recognizes bare TypeVarTuples in materialization checks.

    0.0.85release notes

  • Fixes member lookup on union-bounded type variables.

    0.0.85release notes

  • Metadata errors explain when the uv version is outdated, and uv metadata diagnostics are improved.

    0.0.85release notes

  • Preserves call narrowing during cyclic inference.

    0.0.84release notes

  • Fixes disjointness checking for generic class types.

    0.0.84release notes

  • Only reachable definitions are considered when deciding whether conditions defined relative to version, platform, OS, or type-checking state should be exempted.

    0.0.84release notes

  • Fixes stale LSP diagnostics after toggling this setting.

    0.0.84release notes

  • Fixes staticmethod shadowing through generic receivers and unions.

    0.0.84release notes

  • Preserves intersections of type guard return types.

    0.0.84release notes

  • Avoids incorrect simplification of TypeIs materializations.

    0.0.84release notes

  • Preserves inferred bindings during annotation cycles.

    0.0.83release notes

  • Represents bound methods more faithfully.

    0.0.83release notes

  • Respects fixed caller type variables when selecting constraints.

    0.0.83release notes

  • Classifies evidence bounds only for constrained type variables.

    0.0.83release notes

  • Points each misplaced tuple ellipsis diagnostic at the corresponding ellipsis.

    0.0.83release notes

  • Preserves fast name filtering for normalized Unicode source.

    0.0.83release notes

  • Preserves PEP 695 bindings across nested classes.

    0.0.83release notes

  • Preserves quoted aliases during cycle recovery.

    0.0.83release notes

  • Fixes hangs caused by repeated partial application.

    0.0.83release notes

  • Avoids leaking Unknown from unconstrained collection use-sites.

    0.0.83release notes

  • Diagnoses unguarded cycles in implicit and PEP 613 aliases.

    0.0.83release notes

  • Simplifies unions of disjoint exclusions.

    0.0.83release notes

  • Refreshes diagnostics after workspace configuration changes.

    0.0.83release notes

  • Declared variance is checked against final method bindings.

    0.0.82release notes

  • Field metadata is preserved after overload resolution.

    0.0.82release notes

  • Overrides of frozen=False on Pydantic subclasses are respected.

    0.0.82release notes

  • The disjointness of functools.partial types is improved.

    0.0.82release notes

  • Valid LSP settings are preserved when configuration resolution fails.

    0.0.82release notes

  • Recursive protocol checks work for decorated methods.

    0.0.82release notes

  • Gradual tuple lengths are preserved during callable inference.

    0.0.82release notes

  • Tuple shapes are preserved during concatenation.

    0.0.82release notes

  • The CLI skips uv workspace metadata only for a single script.

    0.0.82release notes

  • Dependencies are resolved within correlated inference alternatives.

    0.0.81release notes

  • Descriptor detection now ignores divergent markers.

    0.0.81release notes

  • Type checking avoids rebinding extracted method calls.

    0.0.81release notes

  • Fixes MRO ordering for generic bases.

    0.0.81release notes

  • Glob characters in anchored directory paths are now escaped, preventing them from being interpreted as pattern syntax.

    0.0.81release notes

  • Type checking now handles gradual metaclass ancestry and conflicts.

    0.0.81release notes

  • Nominal descriptor checks preserve wrapped signatures.

    0.0.81release notes

  • Explicitly overridden constructor signatures are validated.

    0.0.81release notes

  • Union transformations preserve recursive metadata.

    0.0.81release notes

  • Type checking respects instance dictionary storage for slotted classes.

    0.0.81release notes

  • Narrowing tagged unions preserves runtime comparison semantics.

    0.0.81release notes

  • Fixes reduction of variadic partial signatures.

    0.0.81release notes

  • Fixes cached classmethods on generic classes.

    0.0.80release notes

  • Preserves callable identity across specialized types.

    0.0.80release notes

  • Fixes exclusion of directories when an ancestor is excluded.

    0.0.80release notes

  • Preserves wrapped functions in precise functools.partial relations.

    0.0.80release notes

  • Prevents the LSP server from hanging during bursts of inlay hints.

    0.0.80release notes

  • Preserves metaclass candidates after conflicts.

    0.0.80release notes

  • Unwraps union alternatives in overload implementations.

    0.0.80release notes

  • Preserves callback type context through ParamSpec forwarding.

    0.0.80release notes

  • Preserves redundant-condition diagnostics when operands are unreachable.

    0.0.80release notes

  • Respects the descriptor protocol for __set__ itself.

    0.0.80release notes

  • Fixes disjointness between type guards and boolean literals.

    0.0.80release notes

  • Respects type-variable bounds in argument context.

    0.0.80release notes

  • Checks captured receivers when calling wrapped classmethods.

    0.0.80release notes

  • Adds assert_never fixes for redundant final elif branches.

    0.0.79release notes

  • Adds await fixes for diagnostics about redundant conditions.

    0.0.79release notes

  • Preserves deprecations on decorated callables.

    0.0.79release notes

  • Avoids panics when typing is shadowed in dict keyword calls.

    0.0.79release notes

  • Solves formal unions using constraint-sets.

    0.0.79release notes

  • Preserves gradual type context during generic call inference.

    0.0.79release notes

  • Ensures f is identity(f) evaluates to Literal[True].

    0.0.79release notes

  • Recovers cycles when constructing known class instances.

    0.0.79release notes

  • Discovers configs in models derived from legacy generic classes.

    0.0.79release notes

  • Adds Literal fixes for diagnostics that flag invalid type annotations.

    0.0.79release notes

  • Promotes literals in nested, non-covariant positions.

    0.0.79release notes

  • Fixes callable specialization with union-valued ParamSpec.

    0.0.79release notes

  • Preserves outer type variables during ParamSpec inference.

    0.0.79release notes

  • Preserves protocol intersections when narrowing gradual types.

    0.0.79release notes

  • Declares support for Python 3.15.

    0.0.79release notes

  • Normalizes recursive collection-use constraints.

    0.0.79release notes

  • Preserves nominal subtyping for top-materialized protocols.

    0.0.79release notes

  • Avoids falling back to Unknown when collecting type context constraints.

    0.0.79release notes

  • Aligns TypeIs narrowing with isinstance narrowing.

    0.0.79release notes

  • Captured bound-method receivers are treated covariantly.

    0.0.78release notes

  • Cyclic intersection simplification is deterministic.

    0.0.78release notes

  • Terminal-call reachability in cyclic cases is stabilized.

    0.0.78release notes

  • Diagnostics are deferred to avoid recursive-default cycles.

    0.0.78release notes

  • Deprecation diagnostics respect overload selection.

    0.0.78release notes

  • Generic protocol materialization relations are preserved.

    0.0.78release notes

  • Unsound intersection simplification for generic iterables is fixed.

    0.0.78release notes

  • Type variables are respected in top/bottom materializations.

    0.0.78release notes

  • Negative narrowing is fixed for protocols with gradual members.

    0.0.78release notes

  • Bindings inferred against type context are preserved.

    0.0.78release notes

  • Uncertain branches are preserved during quantification.

    0.0.78release notes

  • Type variable scopes are validated in constructors and aliases.

    0.0.78release notes

  • Condition truthiness is stabilized during cyclic inference.

    0.0.77release notes

  • Recursive protocol traversal in generic intersections is now bounded.

    0.0.77release notes

  • Generic receivers are preserved in implicit __init_subclass__ calls.

    0.0.77release notes

  • Deletions are propagated through nested loop headers.

    0.0.77release notes

  • Recursion guards are preserved across nested type operations.

    0.0.77release notes

  • Removing redundant casts now preserves syntax and comments.

    0.0.77release notes

  • Specialization is preserved for inherited TypedDict methods.

    0.0.77release notes

  • Fixes a panic in auto-completion involving bare declarations.

    0.0.76release notes

  • Preserves type variables in bounded generic defaults.

    0.0.76release notes

  • Preserves inferred types for unknown class-decorator results.

    0.0.76release notes

  • Validates declared variance in method signatures.

    0.0.76release notes

  • Preserves Final variance in stubs.

    0.0.76release notes

  • Narrows functional enum members in equality comparisons and match statements.

    0.0.76release notes

  • Fixes Goto definition behavior in script dependencies.

    0.0.76release notes

  • Uses the subclass receiver when checking method overrides.

    0.0.76release notes

  • Applies mixin specialization when validating enum members.

    0.0.76release notes

  • Avoids panics on incomplete protocol type parameter lists.

    0.0.76release notes

  • Guards recursive meta-type expansion.

    0.0.76release notes

  • Preserves parentheses when removing redundant casts.

    0.0.76release notes

  • Synchronizes saved script metadata on open.

    0.0.76release notes

  • Binds Self through generic type aliases.

    0.0.76release notes

  • Preserves short-circuit reachability for direct conditions.

    0.0.76release notes

  • Preserves list literal positions in starred unpacking.

    0.0.76release notes

  • Narrowing through branch-assigned conditions is made sound.

    0.0.75release notes

  • collections.abc.Callable is recognized as an instance of type.

    0.0.75release notes

  • Equality inference accounts for known subclasses.

    0.0.75release notes

  • Correlated generic-call inference is preserved.

    0.0.75release notes

  • Generic protocol variance is validated.

    0.0.75release notes

  • Invariant materialization constraints are preserved.

    0.0.75release notes

  • Bounds of non-literal metaclasses are preserved.

    0.0.75release notes

  • Inconsistent binding decorators on overloads are ignored.

    0.0.75release notes

  • PEP 723 script environments are refreshed in watch mode.

    0.0.75release notes

  • The type checker resolves imported pytest fixture exposures.

    0.0.75release notes

  • The type checker resolves fixture providers installed by core pytest.

    0.0.75release notes

  • Bounds of Self are specialized for inherited methods.

    0.0.75release notes

  • Self binding in ParamSpec protocols is corrected.

    0.0.75release notes

  • Diagnostics explain missing storage for declared slotted attributes.

    0.0.75release notes

  • Variance inference for TypedDict is corrected.

    0.0.75release notes

  • Bare TypeVarTuples are recovered in tuple annotations.

    0.0.75release notes

  • Diagnostic spans are improved for unpacked variable assignments.

    0.0.75release notes

  • Send and return types are inferred from the iterator returned by __iter__.

    0.0.75release notes

  • Recognizes ABC metaclass methods on protocols.

    0.0.74release notes

  • Uses invalid-type-form for annotations of non-generic classes.

    0.0.74release notes

  • Preserves string annotation context in lambda defaults.

    0.0.74release notes

  • Avoids duplicate bindings in multi-target assignments.

    0.0.74release notes

  • Skips scripts whose PEP 723 configuration is invalid.

    0.0.74release notes

  • Fixes stack overflow during recursive TypedDict dictionary compatibility checks.

    0.0.74release notes

  • Propagates narrowing through statically known branches.

    0.0.74release notes

  • Prevents panics on unpacked kwargs and handles assignment expressions and dynamic classes in string annotations; also skips invalid subscript arguments and operands.

    0.0.74release notes

  • Prevents stack overflow when checking recursive TypedDict dictionary compatibility and preserves string annotation context in TypedDict types.

    0.0.74release notes

  • Preserves keyword safety when checking unpacked callables.

    0.0.74release notes

  • Fixes how variadic signatures are displayed.

    0.0.74release notes

  • Handles file-valued workspace folders sent by Zed.

    0.0.74release notes

  • Several diagnostics now disambiguate types that share the same name.

    0.0.73release notes

  • Preserves declared types in exception handlers.

    0.0.73release notes

  • Preserves variadic generics when checking functools.partial.

    0.0.73release notes

  • Generated constructors now preserve required fields from stubs.

    0.0.73release notes

  • Preserves explicit globals after conditional rebinding.

    0.0.73release notes

  • Preserves static upper bounds of gradual solutions.

    0.0.73release notes

  • Specializes inherited members of unspecialized generic classes.

    0.0.73release notes

  • Preserves class objects during lazy protocol checks.

    0.0.73release notes

  • Expands nested union aliases when looking for a TypedDict or callable.

    0.0.73release notes

  • Preserves property subclass types and accessors during type checking.

    0.0.73release notes

  • Errors originating in script metadata now show error spans.

    0.0.73release notes

  • Fixes signature help when the cursor is in trailing whitespace.

    0.0.73release notes

  • Preserves the runtime origin of TypeAliasType.

    0.0.73release notes

  • Assignability hints are improved for protocols and TypedDict types.

    0.0.72release notes

  • Augmented assignments are no longer treated as attribute definitions.

    0.0.72release notes

  • Overload argument expansion works correctly with unpacked positional arguments.

    0.0.72release notes

  • Pydantic accepts documented boolean and fractional inputs.

    0.0.72release notes

  • Generic declaration metadata is ignored in staticness checks.

    0.0.72release notes

  • Tuple types containing Never are preserved.

    0.0.72release notes

  • Generic TypedDict aliases are specialized correctly.

    0.0.72release notes

  • Variance is respected when inferring structural and callable types.

    0.0.72release notes

  • ty validates boolean conversion in comprehension filters.

    0.0.71release notes

  • ty preserves constrained TypeVar types when slicing.

    0.0.71release notes

  • ty handles class objects that may be descriptors.

    0.0.71release notes

  • ty preserves enum attributes on Self and bounded type variables.

    0.0.71release notes

  • ty preserves enum exhaustiveness when enums define custom _missing_ methods.

    0.0.71release notes

  • ty restricts equality-impossibility conclusions to static bounds.

    0.0.71release notes

  • ty resolves generic type aliases subscripted inside type[].

    0.0.71release notes

  • Type narrowing no longer introduces boolean literals when narrowing integers.

    0.0.71release notes

  • ty respects third-party keyword-only fields when running on Python versions before 3.10.

    0.0.71release notes

  • ty preserves literal-string origin during comparison narrowing.

    0.0.71release notes

  • ty fixes truthiness inference for subclassable known classes.

    0.0.71release notes

  • ty validates the shapes of unpacked callable arguments.

    0.0.71release notes

  • Validates stores made by augmented assignments.

    0.0.70release notes

  • Contextual inference is preserved for declarations in loops.

    0.0.70release notes

  • Generator aliases are expanded when evaluating return, send, and yield types.

    0.0.70release notes

  • Recognizes overlapping NewType types and their underlying values.

    0.0.70release notes

  • Quantified constraints are excluded from semantic type walks.

    0.0.70release notes

  • Fixes signature help when the cursor is at the end of a file.

    0.0.70release notes

  • Type labels in structured docstrings are normalized.

    0.0.70release notes

  • Typing-only completion ranking is preserved in TYPE_CHECKING blocks.

    0.0.70release notes

  • Infers precise truthiness for TypedDict key-membership checks.

    0.0.70release notes

  • Avoids a deadlock when scheduling watch checks.

    0.0.70release notes

  • Fixes a panic caused by mismatched OR-pattern bindings.

    0.0.68release notes

  • Property getter call errors are preserved in diagnostics.

    0.0.68release notes

  • Restores bottom callable subtyping for gradual prefixes.

    0.0.67release notes

  • Property compatibility is checked when matching class objects to protocols.

    0.0.67release notes

  • Fixes constructor calls on narrowed type-variable intersections.

    0.0.67release notes

  • Validates constructor calls on unbounded type variables.

    0.0.67release notes

  • Fixes a specialization cycle involving deferred TypeVar defaults.

    0.0.67release notes

  • Typing-only symbols are retained in explicit completions.

    0.0.67release notes

  • Preserves generic class type variables in constructor inference.

    0.0.67release notes

  • Recovers generic constructor types from failing overloads.

    0.0.67release notes

  • Preserves class type parameters through generic decorators.

    0.0.67release notes

  • Preserves called types in intersection diagnostics.

    0.0.67release notes

  • Top-materializes the is_dataclass type guard.

    0.0.67release notes

  • Match-pattern bindings are indexed as symbols.

    0.0.67release notes

  • Preserves return constraints for object-variadic callables.

    0.0.67release notes

  • Preserves return constraints for top callables.

    0.0.67release notes

  • Suppresses these diagnostics in stub files and if TYPE_CHECKING blocks.

    0.0.67release notes

  • Normalizes unpacked callable signatures for assignability.

    0.0.67release notes

  • Fixes unused hints for captures in OR-patterns.

    0.0.67release notes

  • ty preserves exact numeric types in covariant collections.

    0.0.66release notes

  • ty diagnoses dataclass fields that follow inherited defaults.

    0.0.66release notes

  • ty fixes assignability for enum class containers.

    0.0.66release notes

  • ty preserves diagnostic sources when forwarding expanded-variadic diagnostics.

    0.0.66release notes

  • ty respects bounds and constraints in generic materializations.

    0.0.66release notes

  • ty avoids over-materializing user-defined TypeIs return types.

    0.0.66release notes

  • ty preserves TypeVarTuple context during Generic recovery.

    0.0.66release notes

  • Preserves type inference when constructor overloads are filtered.

    0.0.65release notes

  • Diagnostics now recover the source locations of forwarded callable objects and constructors.

    0.0.65release notes

  • Preserves setter delegation for frozen dataclasses.

    0.0.65release notes

  • Diagnostics now recover source locations for forwarded functools.partial calls.

    0.0.65release notes

  • Fixes gradual class assignability when generic receivers are involved.

    0.0.65release notes

  • Corrects the reported locations for forwarded-argument diagnostics involving ParamSpec.

    0.0.65release notes

  • Tagged unions are now narrowed through all type kinds.

    0.0.65release notes

  • Improves identity comparison inference for singleton types.

    0.0.64release notes

  • Fixes identity narrowing for NewTypes.

    0.0.64release notes

  • Implicit setter calls now reuse full call diagnostics.

    0.0.64release notes

  • Fixes the rule's suggestion for Python versions before 3.12.

    0.0.64release notes

  • Avoids cycles when resolving ModuleType globals.

    0.0.64release notes

  • Decorates only overload implementation signatures.

    0.0.64release notes

  • Preserves receiver constraints when binding overloaded methods.

    0.0.64release notes

  • Fixes hover and type navigation for ParamSpec declarations in the LSP.

    0.0.64release notes

  • Makes reachability analysis idempotent.

    0.0.64release notes

  • Preserves Self in __new__ calls.

    0.0.64release notes

  • Narrowing tagged unions now accounts for identity comparisons.

    0.0.64release notes

  • Improves inference for tuple membership and rich comparisons.

    0.0.64release notes

  • Models walrus bindings created by comprehensions.

    0.0.64release notes

  • Fixes double specialization of generic type aliases.

    0.0.63release notes

  • Fixes handling of intersections between type and TypeForm.

    0.0.63release notes

  • ty handles generic stringified PEP 613 type aliases.

    0.0.63release notes

  • Respects bounded typevars during union inference.

    0.0.62release notes

  • Fixes reachability analysis for Callable isinstance checks.

    0.0.62release notes

  • Preserves constrained TypeVar equality narrowing.

    0.0.62release notes

  • Preserves constrained TypeVar inequality narrowing.

    0.0.62release notes

  • Recovers from cancelled file indexing.

    0.0.62release notes

  • Preserves unsatisfiable generic call constraints.

    0.0.62release notes

  • Avoids editing ignore comments that have trailing reasons.

    0.0.62release notes

  • Checks inherited method conflicts via the MRO.

    0.0.62release notes

  • Fixes protocol matching for Just[float].

    0.0.62release notes

  • Improves reachability inference around value-pattern branches.

    0.0.62release notes

  • Makes membership and equality narrowing consistent.

    0.0.62release notes

  • Respects metaclass __setattr__ when checking class attributes.

    0.0.62release notes

  • Respects rules and analysis in PEP 723 script metadata configurations.

    0.0.62release notes

  • Guards recursive Protocol and TypedDict relations.

    0.0.62release notes

  • Prevents stack overflows in recursive type relation checks.

    0.0.62release notes

  • Fixes Self binding for classmethod __new__ constructors.

    0.0.62release notes

  • Fixes nested short-circuit flow snapshots.

    0.0.62release notes

  • Avoids recursive TypeVarTuple alias expansion.

    0.0.62release notes

  • Avoids extending own-line suppressions when using this option.

    0.0.61release notes

  • Method override checking respects receiver domains for mixins.

    0.0.61release notes

  • Avoids recursive structural comparisons when checking protocols.

    0.0.61release notes

  • Narrows the inferred values of walrus expressions.

    0.0.61release notes

  • Constraints from bound receivers are preserved during type checking.

    0.0.60release notes

  • Prevents types written with a code span from being incorrectly re-wrapped during docstring Markdown rendering in the LSP server.

    0.0.60release notes

  • PEP 695 aliases are resolved in type[...] annotations.

    0.0.60release notes

  • Avoids recursive protocol union redundancy checks and handles recursive protocols in redundant-cast checks.

    0.0.60release notes

  • Sequence pattern narrowing is retained in successful match cases.

    0.0.60release notes

  • Transparent callable workarounds now support overloads and Awaitable[T], and are treated consistently in class assignments.

    0.0.60release notes

  • TypeGuard keyword arguments are narrowed, and the invalid-type-guard-call diagnostic is removed.

    0.0.60release notes

  • Dataclass field-order checks now respect init=False.

    0.0.59release notes

  • Guard descriptor classification against cycles.

    0.0.59release notes

  • Corrects how tabs are expanded in docstrings by the LSP server.

    0.0.59release notes

  • File check eligibility no longer causes broad invalidation in the LSP server.

    0.0.59release notes

  • Resolves parsing ambiguity in favor of observations from popular projects.

    0.0.59release notes

  • ParamSpec callables are exempt from the dunder descriptor heuristic.

    0.0.59release notes

  • Corrects receiver binding for protocol methods.

    0.0.59release notes

  • Self is now bound in implicit dunder calls.

    0.0.59release notes

  • Avoid duplicate diagnostics for overloaded TypeIs.

    0.0.59release notes

  • Transitive TypeVar artifacts are removed during collection inference.

    0.0.59release notes

  • Adds support for cached properties in protocols.

    0.0.58release notes

  • Handles callable classes in the type-checking solver.

    0.0.58release notes

  • Infers ModuleType.__doc__ as str when a docstring is present.

    0.0.58release notes

  • Fixes protocol matching for class variables.

    0.0.58release notes

  • Treats ellipsis as providing no default value.

    0.0.58release notes

  • Recognizes fields from Pydantic mixin classes.

    0.0.58release notes

  • Fixes float conversion in Pydantic unions.

    0.0.58release notes

  • Fixes reflected binary dispatch for runtime classes.

    0.0.58release notes

  • Respects user stub overlays during module resolution.

    0.0.58release notes

  • ty now detects async generator expressions containing await.

    0.0.57release notes

  • Generic signatures are preserved for functools.partial.

    0.0.57release notes

  • Invariant materialization is preserved on generic specializations.

    0.0.57release notes

  • Generic variadic callback semantics are preserved.

    0.0.57release notes

  • Exhaustive gradual match patterns are preserved.

    0.0.57release notes

  • reStructuredText hyperlinks in hover docstrings are rendered as Markdown.

    0.0.57release notes

  • Narrowing now handles intersections containing an invalid member.

    0.0.57release notes

  • Literal enum member names are preserved.

    0.0.57release notes

  • Fixes subtyping and assignability for @property protocol members.

    0.0.57release notes

  • Fixes LSP selection range behavior for strings.

    0.0.57release notes

  • Docstring parsing for signature help recognizes that dedent ends a doctest block.

    0.0.57release notes

  • Renaming an attribute now updates its string in __slots__.

    0.0.57release notes

  • Models normalization of int and str enum values.

    0.0.56release notes

  • Recognizes constructors for inherited enum members.

    0.0.56release notes

  • The CLI exits with status 130 when interrupted.

    0.0.56release notes

  • Avoids an MRO cycle when collecting NamedTuple fields.

    0.0.56release notes

  • Respects return-context inference when filtering overloads.

    0.0.56release notes

  • Prefers reflected operators according to the runtime class.

    0.0.56release notes

  • Enum alias detection and scalar constructors are corrected.

    0.0.55release notes

  • Positional class patterns are validated against __match_args__.

    0.0.55release notes

  • Import analysis skips shadowed submodule bindings.

    0.0.55release notes

  • Inference for structural pattern bindings is fixed.

    0.0.55release notes

  • Inference for variable-length tuple slicing is improved.

    0.0.55release notes

  • Supports basic usages of __class__ closure cells in methods.

    0.0.54release notes

  • Avoids duplicate configuration error output.

    0.0.54release notes

  • Improves class-pattern fallthrough analysis, proves TypedDict structural patterns exhaustive, and resolves positional class-pattern exhaustiveness.

    0.0.54release notes

  • Reuses equality semantics when checking membership compatibility.

    0.0.54release notes

  • Avoids stack overflows in reachability analysis.

    0.0.54release notes

  • Fixes divergent handling of recursive tuple cycles.

    0.0.54release notes

  • Fixes panics from relation queries during cycle recovery.

    0.0.54release notes

  • Fixes inconsistent token classification for type aliases in the LSP server.

    0.0.54release notes

  • Reverts recursive TypeOf cycle recovery to fix panics.

    0.0.54release notes

  • Handles TypeVar bounds over type[...] in attribute lookup.

    0.0.54release notes

  • Distinguishes typing.TypedDict from typing_extensions.TypedDict.

    0.0.54release notes

  • Fixes ParamSpec callable signature extraction for callable instances.

    0.0.53release notes

  • Preserves the regular kind for callable instances.

    0.0.53release notes

  • Avoids bypassing lazy constraints for Divergent, improving type-checking behavior.

    0.0.53release notes

  • Simplifies intersections of invariant generic types with Any specializations.

    0.0.53release notes

  • Avoids recursion when projecting narrowing constraints.

    0.0.53release notes

  • Makes multi-arm TypeOf cycle recovery monotonic.

    0.0.53release notes

  • Avoids showing shadowing hints for attribute assignments.

    0.0.52release notes

  • Its overloads now accept arbitrary keys when defaults are provided.

    0.0.52release notes

  • Recovers from cycles in dynamic class code generators.

    0.0.52release notes

  • Preserves gradual behavior for explicit Any subclasses.

    0.0.52release notes

  • Preserves generic alias identity during cycle recovery.

    0.0.52release notes

  • Preserves metaclasses when inheriting from intersection-typed bases.

    0.0.52release notes

  • Normalizes recursive protocol growth during cycle recovery.

    0.0.52release notes

  • Recursive TypeOf is normalized across multiple union arms and during cycle recovery.

    0.0.52release notes

  • Supports Annotated[Any, ...] as a class base.

    0.0.51release notes

  • Fixes recovery from cycles involving bound TypeVar defaults.

    0.0.51release notes

  • Preserves exact class objects during identity narrowing.

    0.0.51release notes

  • Preserves unpacking diagnostics for nested assignment targets.

    0.0.51release notes

  • Decorated methods are highlighted consistently in the LSP server.

    0.0.50release notes

  • Deprecated warning categories are validated.

    0.0.50release notes

  • The LSP server retains all diagnostic annotations.

    0.0.50release notes

  • Diagnostics for duplicate-base cases are improved.

    0.0.50release notes

  • Equality-based narrowing is improved for ==, !=, and match.

    0.0.50release notes

  • Bare Final is shown as a special form on hover.

    0.0.50release notes

  • Type variables are preserved in fixed tuple aliases.

    0.0.50release notes

  • Options in functional dataclass calls are supported.

    0.0.50release notes

  • Generic inference avoids leaking constraints across distinct TypeVars.

    0.0.50release notes

  • Non-final types are preserved in Hashable unions.

    0.0.50release notes

  • Equality narrowing works across IntEnum classes.

    0.0.50release notes

  • Literal types are preserved for loop variables iterating over literal collections.

    0.0.50release notes

  • The checker synthesizes __match_args__ for NamedTuple.

    0.0.50release notes

  • Function validation respects the @no_type_check decorator.

    0.0.50release notes

  • ParamSpec binding contexts are respected during type checking.

    0.0.50release notes

  • Negative narrowing is preserved for starred sequence patterns.

    0.0.50release notes

  • Tuple expression match subjects are narrowed.

    0.0.50release notes

  • Narrowing is preserved after qualified TYPE_CHECKING checks.

    0.0.50release notes

  • The LSP server reports the correct symbol range for wildcard imports.

    0.0.50release notes

  • Type checking for collection literals now uses peer context.

    0.0.49release notes

  • Preserves the nominal type of enum.property instances during type checking.

    0.0.49release notes

  • The diagnostic now points at the attribute's binding site.

    0.0.49release notes

  • Fixes a site-package error that occurred when multiple Python versions were installed in the system path.

    0.0.49release notes

  • Improves type-checking precision for TypedDict declarations using closed=True.

    0.0.48release notes

  • Preserves overloads through callable protocol decorators, improving type checking of decorated callables.

    0.0.47release notes

  • Avoids panicking when a recursive NamedTuple references a recursive NewType.

    0.0.47release notes

  • Fixes an out-of-bound panic in notebooks involving suppression comments.

    0.0.47release notes

  • Avoids a crash when hovering over Callable.

    0.0.46release notes

  • Improves support for enum.property.

    0.0.46release notes

  • Transparent callable decorators are now preserved.

    0.0.45release notes

  • Generic callable type variables are now represented by fresh copies.

    0.0.45release notes

  • Attribute lookup now preserves intersection receivers.

    0.0.45release notes

  • Preserves literal promotion when bounds are mixed.

    0.0.45release notes

  • Fixes divergence in recursive inference caused by ambiguous overloads.

    0.0.45release notes

  • Deprecation information is preserved on replacement functions.

    0.0.45release notes

  • The anchor point for override diagnostics is fixed, improving where diagnostics are reported.

    0.0.44release notes

  • ty no longer treats sys.implementation.version like sys.version_info, avoiding incorrect handling during type checking.

    0.0.44release notes

  • Dynamic class literals are normalized during cycle recovery.

    0.0.43release notes

  • File roots are registered for first-party search paths.

    0.0.43release notes

  • Disjointness is detected when generic specializations are incompatible.

    0.0.43release notes

  • Non-callable elements of an intersection call no longer inject Unknown into inferred types.

    0.0.43release notes

  • Nested global and nonlocal bindings are included in type inference.

    0.0.43release notes

  • Variance inference for nested type aliases is corrected.

    0.0.43release notes

  • Error context is improved for not-iterable diagnostics.

    0.0.43release notes

  • Union-bound type variables are treated like unions for this diagnostic.

    0.0.43release notes

  • Slice-bound types are preserved in subscript inference.

    0.0.43release notes

  • Rejected member annotations are ignored when synthesizing bindings.

    0.0.43release notes

  • The same type alias is no longer needlessly disambiguated.

    0.0.43release notes

  • Type aliases are expanded inside unions in type contexts.

    0.0.43release notes

  • ty distinguishes typing.Callable from collections.abc.Callable during type checking.

    0.0.43release notes

  • Detects recursive expansion during constraint-set solving.

    0.0.42release notes

  • Fixes narrowing of enum literal unions by member identity.

    0.0.42release notes

  • Extends the Generator assignability workaround to Python 3.13 and later.

    0.0.42release notes

  • Bound method overloads are narrowed by receiver during type checking.

    0.0.41release notes

  • The diagnostic for failed assignment to a Callable type is improved.

    0.0.41release notes

  • The editor setting completeFunctionParentheses is documented.

    0.0.41release notes

  • Avoids panicking when handling deferred dataclass field annotations.

    0.0.41release notes

  • Diagnostic messages are used as a tie-breaker when sorting, which can affect diagnostic ordering.

    0.0.41release notes

  • Diagnostics for syntax errors in forward annotations are improved.

    0.0.41release notes

  • Avoids panicking when a cycle occurs during function decorator inference.

    0.0.41release notes

  • Metaclass declarations are no longer treated as populated values.

    0.0.41release notes

  • The type checker now infers bool when not is applied to dynamic values.

    0.0.41release notes

  • Rejected assignments are ignored when processing synthesized bindings.

    0.0.41release notes

  • Class attributes assigned by metaclass initialization are inferred.

    0.0.40release notes

  • Many generics solver issues are fixed by using constraint sets more widely to solve type variables.

    0.0.40release notes

  • Diagnostics in ignored folders are fixed after adding new files.

    0.0.40release notes

  • Autocompletion works for elements inside incomplete list comprehensions.

    0.0.40release notes

  • Enum names are resolved for all union arms in Literal enum subsets.

    0.0.40release notes

  • Definition mapping from a stub file to its real runtime definition now follows aliases.

    0.0.40release notes

  • Recursively defined state is retained when analyzing binary expressions.

    0.0.39release notes

  • The fallback for unknown results from Callable class decorators is refined.

    0.0.39release notes

  • ty infers dict(TypedDict) as dict[str, object].

    0.0.39release notes

  • HTML syntax is escaped when the LSP server renders docstrings.

    0.0.39release notes

  • Type checking now allows enum member accesses on self.

    0.0.39release notes

  • Diagnostics for extra callable parameters now include error context.

    0.0.39release notes

  • ty avoids panicking when a class receives an __new__ assignment.

    0.0.39release notes

  • Synthesized class fields preserve declaration order.

    0.0.39release notes

  • Fixes global lookup in a class body before the class binding is available.

    0.0.38release notes

  • Fixes a panic involving enum literals during cycle recovery.

    0.0.38release notes

  • Fixes LSP find references for except handlers.

    0.0.38release notes

  • Preserves delimiters when folding expressions in the LSP server.

    0.0.38release notes

  • Allows known non-field writes on frozen dataclass subclasses.

    0.0.38release notes

  • Ignores _generate_next_value_ when enums use custom construction hooks.

    0.0.38release notes

  • Ignores generic specialization when checking layout compatibility.

    0.0.38release notes

  • Fixes a panic when lazily expanding a NewType base during cycle recovery.

    0.0.38release notes

  • Preserves short-circuit bindings in all condition consumers.

    0.0.38release notes

  • Type checking now respects dict-compatible fallbacks in TypedDict unions.

    0.0.38release notesrelease notes

  • Fixes async iteration over narrowed type variables.

    0.0.37release notes

  • Prevents a panic during disjoint base checks.

    0.0.37release notes

  • Prevents a panic during recursive binary inference.

    0.0.37release notes

  • Only specialized types of generic class instances influence variance.

    0.0.37release notes

  • Prevents a panic involving cyclic __new__.

    0.0.37release notes

  • Avoids enforcing __new__ when a custom metaclass is present.

    0.0.37release notes

  • Avoids unsound type narrowing for not-in checks.

    0.0.37release notes

  • Prevents a panic involving imported overload definitions.

    0.0.37release notes

  • Makes overload public type reachability-aware.

    0.0.37release notes

  • Preserves ParamSpec argument context through wrapper calls.

    0.0.37release notes

  • Prevents panics in reveal functions such as reveal_protocol and reveal_mro when called with keyword arguments.

    0.0.37release notes

  • Prevents a panic during double inference for a single starred positional TypedDict.

    0.0.37release notes

  • Fixes attribute access on TypeVars bounded by Callable.

    0.0.36release notes

  • Fixes assignment checks for ClassVar[Self] when the assigned value is a class object.

    0.0.36release notes

  • Go To-Definition now works for self-imported submodules.

    0.0.36release notes

  • The LSP server now respects the includeDeclaration request parameter.

    0.0.36release notes

  • Full iteration analysis now runs on narrowed typevars.

    0.0.36release notes

  • Returned Callable annotations preserve their lexical ParamSpec scope.

    0.0.36release notes

  • Fixes singleton classification for runtime typing objects.

    0.0.36release notes

  • Prevents a panic when static_assert is accessed without an args[0] value.

    0.0.36release notes

  • TypedDict keys are preserved through dict unpacking.

    0.0.36release notes

  • Prevents a panic when a TypedDict schema contains a cycle through Self fields.

    0.0.36release notes

  • Guards against self-referential TypeOf recursion in generic callables.

    0.0.36release notes

  • Walrus bindings are preserved through negated short-circuit conditions.

    0.0.36release notes

  • Prevents a panic when accessing a non-name walrus target.

    0.0.36release notes

  • Folding range starts are adjusted to preserve the visible header for character-precise LSP clients.

    0.0.35release notes

  • Type context is provided for boolean operands.

    0.0.35release notes

  • More precise exception types are used when catching a union.

    0.0.35release notes

  • Type context is provided for generator expression yields.

    0.0.35release notes

  • Implicit aliases preserve NewType and TypeAliasType.

    0.0.35release notes

  • Comparison between negative and positive literal integers is fixed.

    0.0.35release notes

  • Overloads are filtered based on return type for ParamSpec mapping.

    0.0.35release notes

  • ParamSpec specialization now works through unioned generic classes.

    0.0.35release notes

  • Support for recursive types is improved.

    0.0.35release notes

  • Infers dict(**TypedDict) in a TypedDict context.

    0.0.34release notes

  • Fixes unbounded type growth in nested type-variable substitutions.

    0.0.34release notes

  • Fixes ParamSpec defaults and alias variance.

    0.0.34release notes

  • Adds a missing error context node for protocol-to-protocol assignability diagnostics.

    0.0.34release notes

  • Prevents panics during recursive protocol signature comparisons.

    0.0.34release notes

  • Prevents string annotation tokens from leaking between notebook cells.

    0.0.34release notes

  • Reference finding now works in stringified annotations.

    0.0.34release notes

  • Prevents panics when invalid unpacking assignments contain syntax error targets.

    0.0.34release notes

  • Fixes TypeIs assignability with gradual types.

    0.0.34release notes

  • Unpacks Union of TypedDict in various sites.

    0.0.34release notes

  • Fixes incorrect unused reporting for annotation-only local variables.

    0.0.33release notes

  • Improves handling of finally blocks when all try and except blocks are terminal.

    0.0.33release notes

  • Improves generic solving for unions in invariant positions.

    0.0.33release notes

  • Improves generic solving for unions when matching against protocols.

    0.0.33release notes

  • Fixes go-to definition for generic classes.

    0.0.33release notes

  • Inlay hint edits are disallowed when they would introduce a non-global-scope symbol.

    0.0.33release notes

  • Invalid intersection type assignments now include error context.

    0.0.33release notes

  • invalid-key diagnostics now include the full type for unions of TypedDicts.

    0.0.33release notes

  • Duplicate invalid-type-form diagnostics for PEP-613 type alias values are removed.

    0.0.33release notes

  • Errors from context manager dunder methods invoked on a union now use more specific diagnostics.

    0.0.33release notes

  • Diagnostics for possibly-unbound errors from implicit dunder calls on unions are improved.

    0.0.33release notes

  • Diagnostics for implicit calls to a possibly unbound unary operator are improved.

    0.0.33release notes

  • Fixes selection of projects and workspaces.

    0.0.33release notes

  • Fixes receiver coloring when decorators are aliased.

    0.0.33release notes

  • Unresolved symbols are no longer given semantic highlighting.

    0.0.33release notes

  • Invalid TypedDict assignments now include error context.

    0.0.33release notes

  • Fixes notifications about watched changes for entities outside any workspace.

    0.0.33release notes

  • The LSP server no longer suggests argument completion while typing a keyword argument's value.

    0.0.32release notes

  • Prevents stack overflow when binary operator inference involves recursive types.

    0.0.32release notes

  • Avoids panicking on overloaded Callable type contexts.

    0.0.32release notes

  • A subclass of a @dataclass_transform-decorated class is not considered to have dataclass-like semantics if it has type in its MRO.

    0.0.32release notes

  • Fixes a panic when __get__ uses a Concatenate self-type and wraps a __call__.

    0.0.32release notes

  • When an @overload-decorated function has no docstring, the LSP server retrieves it from the overload implementation.

    0.0.32release notes

  • Expands class bases when performing per-base lint checks.

    0.0.32release notes

  • Prevents unnecessary ty:ignore comments from being inserted for diagnostics starting on the same line.

    0.0.31release notes

  • Avoids a panic from double inference when functional Enum calls omit names.

    0.0.31release notes

  • Avoids a panic from double inference for functional Enum calls using the value keyword.

    0.0.31release notes

  • Skips EnumMeta.__call__ when determining enum constructor signatures.

    0.0.31release notes

  • Fixes cases where the invalid-key fix does not converge.

    0.0.31release notes

  • Avoids a panic from double inference for namedtuple calls using these arguments.

    0.0.31release notes

  • Checks for inherited NamedTuple field conflicts.

    0.0.31release notes

  • Respects subclass shadowing for inherited NamedTuple fields.

    0.0.31release notes

  • Fixes cases where the diagnostic produces invalid syntax.

    0.0.31release notes

  • Reports an error when duplicate keywords are provided to TypedDict constructors.

    0.0.31release notes

  • Respects mixed positional and keyword arguments in TypedDict constructors.

    0.0.31release notes

  • Fixes assignability of bounded typevars to intersection types.

    0.0.30release notesrelease notes

  • Callable types now render the / parameter before *.

    0.0.30release notes

  • Several edge cases in Concatenate type-expression parsing are tightened.

    0.0.30release notes

  • These diagnostics point to the first reachable declaration rather than the first declaration.

    0.0.30release notes

  • Final variable assignments in __post_init__ are allowed.

    0.0.30release notes

  • Goto definition returns all attribute definitions instead of only the last definition in the scope.

    0.0.30release notes

  • The diagnostic range for incorrect implicit __init_subclass__ calls is corrected.

    0.0.30release notes

  • Signature help is fixed for class calls specialized with ParamSpec.

    0.0.30release notes

  • Explicit None accessors in manual property construction are normalized.

    0.0.30release notes

  • Attribute deletion checks now respect property deleters.

    0.0.30release notes

  • Unsupported Python versions selected by the editor are ignored.

    0.0.30release notes

  • Stack overflows caused by recursive types are fixed.

    0.0.30release notes

  • Excess subscript argument inference for non-generic types is fixed; list[int][0] now leads to one diagnostic instead of two.

    0.0.30release notes

  • super() is supported in metaclass methods.

    0.0.30release notes

  • Nested conditional blocks now inherit the TYPE_CHECKING state of outer blocks.

    0.0.30release notes

  • Assignability of type[T] to a metaclass is corrected.

    0.0.30release notes

  • TypedDict field types provide context for inferring arguments passed to TypedDict constructors.

    0.0.30release notes

  • TypedDict unpacking now respects non-required keys.

    0.0.30release notes

  • TypeGuard and TypeIs narrowing for unbound method calls is fixed.

    0.0.30release notes

  • Core type checking respects metaclass __call__ return types.

    0.0.29release notes

  • ty avoids special-casing dataclasses.field when it is not listed in field_specifiers.

    0.0.29release notes

  • Core type checking respects __new__ return types.

    0.0.29release notes

  • ty respects supported lower bounds specified by requires-python.

    0.0.29release notes

  • PEP 695 type aliases are fixed when used in a with statement.

    0.0.29release notes

  • Bidirectional inference fixes false positives on operations such as multiplying a list containing None.

    0.0.28release notes

  • Diagnostics for invalid functional TypedDicts are improved.

    0.0.28release notes

  • Parsing invalid type expressions no longer emits cascading diagnostics.

    0.0.28release notes

  • Diagnostics relating to invalid type forms have improved consistency and quality.

    0.0.28release notes

  • The type checker handles most deep mutual TypeVar constraints.

    0.0.28release notes

  • Various type-qualifier-related checks are more robust.

    0.0.28release notes

  • The extra_items keyword argument to class-based TypedDicts is inferred as an annotation expression.

    0.0.28release notes

  • Type qualifiers are validated in functional TypedDict fields and in the extra_items keyword to functional TypedDicts.

    0.0.28release notes

  • Loop header assignments are marked as used, avoiding false positives in unused-variable diagnostics.

    0.0.28release notes

  • Fixes a debug-build panic when requesting autocomplete suggestions for list[int].

    0.0.27release notes

  • Propagates type context through await expressions.

    0.0.27release notes

  • Improves support for Callable type context.

    0.0.27release notes

  • Synthesized constructor methods now name their first argument _cls.

    0.0.27release notes

  • Fixes nested global and nonlocal lookups through forwarding scopes.

    0.0.27release notes

  • Fixes instance-attribute lookup in methods of protocol classes.

    0.0.27release notes

  • Fixes a panic when checking list[Annotated[()]].

    0.0.27release notes

  • Methods accessed off an instance are no longer incorrectly inferred as singleton types.

    0.0.27release notes

  • Fixes semantic token classification for properties accessed on instances.

    0.0.27release notes

  • Adds bidirectional type context for TypedDict get() defaults.

    0.0.27release notes

  • Adds bidirectional type context for TypedDict pop() defaults.

    0.0.27release notes

  • Fixes a stack overflow when checking a recursive type alias involving TypeIs and Callable.

    0.0.27release notes

  • Resolves union-likes when emitting union attribute errors.

    0.0.27release notes

  • Respects dataclass_transform parameters that are not explicitly defined.

    0.0.26release notes

  • Improves call inference for keyword-only dict().

    0.0.26release notes

  • Respects terminal-function-call narrowing in global scope.

    0.0.26release notes

  • Prevents these panics in more situations.

    0.0.26release notes

  • Fixes false positives and false negatives when unpacking a union of tuples into a function call.

    0.0.26release notes

  • Preserves blank lines between comments and imports when applying the add-import action.

    0.0.25release notes

  • Prevents tainted loop bindings during cycle normalization.

    0.0.25release notes

  • Fixes folding ranges for comments separated by statements.

    0.0.25release notes

  • Reduces the diagnostic range for invalid-metaclass.

    0.0.25release notes

  • Improves reachability analysis for isinstance().

    0.0.25release notes

  • Improves keyword argument narrowing for nested dictionaries.

    0.0.25release notes

  • Fixes reachability cycles in loop headers during conditional unpacking.

    0.0.25release notes

  • Unions and intersections of gradual types are now assignable to Never.

    0.0.25release notes

  • Fixes subtyping for intersections containing NewTypes of unions versus unions.

    0.0.25release notes

  • Simplifies an intersection of N & ~T to Never when the corresponding concrete-base intersection B & ~T simplifies to Never.

    0.0.25release notes

  • Fixes panic propagation in Salsa.

    0.0.25release notes

  • Fixes untracked reads that could lead to backdating panics.

    0.0.25release notes

  • Bounded typevars expand to their upper bounds when evaluating truthiness comparisons between intersections and literal types.

    0.0.25release notes

  • Avoids eager TypedDict diagnostics for TypedDict | dict unions.

    0.0.25release notes

  • Fixes variance of frozen dataclass-transform models.

    0.0.24release notes

  • Avoids inferring intersection types for call arguments as a result of bidirectional inference, improving performance and correctness.

    0.0.24release notes

  • Subscripts for unknown TypedDict keys now return Unknown.

    0.0.24release notes

  • Fixes overflow with recursive TypeIs.

    0.0.24release notes

  • Fixes inference of conditionally defined properties.

    0.0.23release notes

  • Respects kw_only overwrites in dataclasses when interpreting dataclass_transform.

    0.0.23release notes

  • Prevents too-many-cycle panics when inferring loop variables with Literal types.

    0.0.23release notes

  • Fixes false-positive diagnostics for PEP-604 union annotations on attribute targets in Python 3.9 when future annotations are enabled.

    0.0.23release notes

  • A constrained TypeVar with str as a constraint narrows to T & str rather than str.

    0.0.22release notes

  • Ensures T & ~S is inferred as a subtype of U when T is understood as a subtype of U.

    0.0.22release notes

  • Duplicate-looking overloaded callables are disambiguated in union display.

    0.0.22release notes

  • Fixes a stack overflow that could occur with certain recursive protocols.

    0.0.22release notes

  • A subdirectory's tool.ty.overrides can override error = "all" from a root pyproject.toml.

    0.0.22release notes

  • Variables assigned using tuple unpacking in loops are no longer inferred as Divergent.

    0.0.22release notes

  • Unsound upcasting to constructor Callable types is limited to assignability checks, not redundancy or subtyping checks.

    0.0.22release notes

  • Fixes precedence of the all selector in TOML configurations.

    0.0.21release notes

  • Preserves Any attributes as Any after isinstance narrowing instead of replacing them with object.

    0.0.21release notes

  • Allows unions of different-length iterables to unpack into optional positional parameters.

    0.0.21release notes

  • Excludes decorators from class and def code-folding regions in the LSP server.

    0.0.21release notes

  • Avoids inferring generics with negative intersections.

    0.0.21release notes

  • Fixes a panic when handling incomplete except handlers.

    0.0.21release notes

  • Better preserves user-provided union order in inferred specializations.

    0.0.21release notes

  • Fixes LSP server handling of non-Python text documents.

    0.0.21release notes

  • Validates bare ParamSpec usage in annotations and supports stringified ParamSpec values as the first argument to Callable.

    0.0.21release notes

  • Avoids stack overflow when processing recursive type variables.

    0.0.21release notes

  • Adds more validation for type-variable defaults.

    0.0.21release notes

  • Applies narrowing to walrus values.

    0.0.21release notes

  • Corrects subtype checking for variadic positional parameters against positional-or-keyword parameters, and fixes overloaded callable assignability for unary Callable targets.

    0.0.20release notes

  • Treats dataclasses created through dataclass_transform as neither frozen nor non-frozen.

    0.0.20release notes

  • Detects inconsistent generic base class specializations appearing in the same MRO.

    0.0.20release notes

  • Negative narrowing is disallowed for checks involving type[] types, and special-cased argument validation now recurses into tuples and nested tuples.

    0.0.20release notes

  • Fixes binary operations between an instance of a NewType of float and an instance of Any or Unknown.

    0.0.20release notes

  • Adds more ParamSpec validation for P.args and P.kwargs.

    0.0.20release notes

  • The command now works when ty is installed into an ephemeral virtual environment.

    0.0.20release notes

  • Limits recursion depth when displaying self-referential function types.

    0.0.20release notes

  • Fixes inference of t.__mro__ when t is an instance of type[Any].

    0.0.20release notes

  • Fixes a panic when rendering a code frame that points to leading whitespace.

    0.0.19release notes

  • Fixes a panic when narrowing the type of a dictionary key assigned through a multi-target assignment.

    0.0.19release notes

  • Fixes inlay hints for starred unpacking targets in the LSP server.

    0.0.19release notes

  • Prevents overloads in another file from being incorrectly associated with a function in the checked file, avoiding panics and incorrect inference.

    0.0.19release notes

  • Fixes equality and __contains__ narrowing involving PEP-695 type aliases.

    0.0.19release notes

  • Reimplements equivalence as mutual subtyping of top and bottom materializations, fixing incorrect overload evaluation and false-positive assert_type and redundant-cast diagnostics.

    0.0.19release notes

  • Improves diagnostics when attempting to specialize non-generic types.

    0.0.19release notes

  • Fixes an infinite hang on mutually recursive type alias definitions.

    0.0.19release notes

  • Recognizes that control flow terminates after awaiting a function returning typing.Awaitable[typing.Never] or a similar type.

    0.0.19release notes

  • Fixes assignability, subtyping, and equivalence checks involving typing.Generator before Python 3.13.

    0.0.19release notes

  • Diagnostics for abstract @final classes are improved.

    0.0.18release notes

  • Override detection now considers synthesized methods and ClassVar-qualified declarations.

    0.0.18release notes

  • Fixes the inferred return type of assert_never.

    0.0.18release notes

  • Fixes assert_type diagnostic messages.

    0.0.18release notes

  • TypeVars in parameter types are now resolved.

    0.0.18release notes

  • Callable types are parenthesized when used in the return annotation of other callable types.

    0.0.18release notes

  • Fixes diagnostics disappearing after an external file is opened.

    0.0.18release notes

  • Removes spurious destinations for variables defined in a loop.

    0.0.18release notes

  • When baking an inlay hint into source, ty uses the fully qualified name if the scope already contains a variable matching the unqualified name.

    0.0.18release notes

  • Fixes incorrect inferred types when unpacking mixed tuples.

    0.0.18release notes

  • Self is now allowed in ClassVar type annotations.

    0.0.18release notes

  • Fixes server panics that could occur while computing semantic tokens for the current file.

    0.0.18release notes

  • Classes dynamically created with type(...) and cyclic bases are now supported.

    0.0.18release notes

  • Prevents stack overflow for self-referential TypeOf in annotations.

    0.0.18release notes

  • Fixes type checking of bound method access on None.

    0.0.17release notes

  • Detects when subclasses override Final class variables.

    0.0.17release notes

  • Uses a smaller diagnostic range for inconsistent-mro diagnostics.

    0.0.17release notes

  • Avoids promoting constrained TypeVars with Literal bounds to Literal types.

    0.0.17release notes

  • Fixes type checking of method calls on subclasses of Any.

    0.0.17release notes

  • Improves how ParamSpecs are displayed in some situations.

    0.0.17release notes

  • Improves reference spans for submodules imported in an __init__.py file.

    0.0.17release notes

  • Supports type narrowing in situations where code calls NoReturn functions.

    0.0.17release notes

  • Fixes false positives in checks for shadowed TypeVars.

    0.0.17release notes

  • Autocomplete omits the class being defined when suggesting names as the user types its bases.

    0.0.16release notes

  • Completion suggestions for class bases exclude classes already included.

    0.0.16release notes

  • Diagnostic mode is now consistent across projects inside the LSP server.

    0.0.16release notes

  • Cross-file find-references now works for keyword arguments.

    0.0.16release notesrelease notes

  • Goto-definition for class constructors now always navigates to the class definition.

    0.0.16release notes

  • Fixes incorrect inlay hints for overloaded function arguments.

    0.0.16release notes

  • The checker now respects @no_type_check when it is combined with other decorators.

    0.0.16release notes

  • Fixes combinatorial explosion caused by fixed-length tuple expansion during overload matching.

    0.0.16release notes

  • Stringified arguments in PEP-613 aliases to Optional are now allowed.

    0.0.16release notes

  • Corrects the diagnostic location for an incorrect sub-call to a specialized ParamSpec.

    0.0.16release notes

  • TypedDict constructor calls are validated for generic aliases and type[...] targets.

    0.0.16release notes

  • Fixes false-positive diagnostics when total= is provided to TypedDict classes with PEP-695 type parameters.

    0.0.16release notes

  • Fixes a fuzzer panic triggered by a slice expression in an unclosed comprehension.

    0.0.16release notes

  • Detects generic Callables in function signature return types.

    0.0.15release notes

  • Lookup of __contains__ now respects descriptors.

    0.0.15release notes

  • Field specifiers are visible when transformed models are nested inside methods.

    0.0.15release notes

  • Tracks dictionary literal keys as individual places to reduce false positives involving heterogeneous dictionaries.

    0.0.15release notes

  • Import resolution now supports packages installed in Debian/Ubuntu dist-packages directories.

    0.0.15release notes

  • Hover hints now show type qualifiers such as Final; bare Final instance attributes no longer show as Unknown.

    0.0.15release notes

  • Fixes edge cases when narrowing tagged unions in match statements.

    0.0.15release notes

  • Attribute lookup on class objects falls back to metaclass __getattr__ or __getattribute__.

    0.0.15release notes

  • Fixes bugs affecting nested NewTypes based on float.

    0.0.15release notes

  • Improves detection of invalid NewTypes with generic bases.

    0.0.15release notes

  • Fixes narrowing of nonlocal variables with conditional assignments.

    0.0.15release notes

  • Avoids false-positive diagnostics for certain intersection types when iterating.

    0.0.15release notes

  • Bidirectional inference and type narrowing involving PEP 695 aliases are improved.

    0.0.15release notes

  • Supports legacy namespace packages declared using pkg_resources.declare_namespace.

    0.0.15release notes

  • Subclass overrides may omit a superclass positional-only parameter when the subclass parameter has a default value; incorrect legacy positional-only conventions are diagnosed.

    0.0.15release notes

  • Diagnoses invalid issubclass() calls against Protocol classes with non-method members, and invalid simultaneous subclassing of Protocol[] and Generic[].

    0.0.15release notes

  • Fixes Self resolution for classes nested within methods.

    0.0.15release notes

  • Support for stringized annotations in very large files is fixed, and LSP navigation and highlighting support is improved.

    0.0.15release notes

  • Fixes construction of a TypedDict from existing TypedDict values.

    0.0.15release notes

  • Fixes unary and comparison operator handling for TypeVars with union bounds.

    0.0.15release notes

  • Uses type context from augmented assignment dunder calls.

    0.0.14release notes

  • Avoids emitting duplicate syntax errors for await expressions outside functions.

    0.0.14release notes

  • Fixes false positives for binary and unary operators on constrained TypeVars.

    0.0.14release notes

  • Fixes assignment in a decorated method causing an Unknown fallback.

    0.0.14release notes

  • Fixes rendering of literal blocks that follow doctests.

    0.0.14release notes

  • Fixes a panic when a final method is overridden using an assignment.

    0.0.14release notes

  • Supports recursive and stringified annotations in functional typing.NamedTuple definitions.

    0.0.14release notes

  • Fixes handling of generic functions decorated with a generic ParamSpec decorator.

    0.0.14release notes

  • Fixes the output format for empty diagnostics.

    0.0.14release notes

  • Go to Definition now looks up attributes on metaclasses.

    0.0.14release notes

  • When reporting invalid @final decorators, diagnostics point to the overload with the invalid decorator.

    0.0.14release notes

  • Improves support for kwarg splats in dictionary literals.

    0.0.14release notes

  • Fixes a false negative when a non-runtime-checkable protocol is used in a match class pattern.

    0.0.14release notes

  • Fixes assertion panics involving memo.changed_at.

    0.0.14release notes

  • Failed namedtuple() and NamedTuple calls now use a more lenient fallback type.

    0.0.14release notes

  • Supports solving generics involving PEP 695 type aliases.

    0.0.14release notes

  • Improves completion rankings in raise-from and except contexts.

    0.0.14release notes

  • Checks that starred arguments in function calls are iterable.

    0.0.14release notes

  • Diagnostics now disambiguate different type aliases that share the same name.

    0.0.14release notes

  • Fixes a false positive for the unsupported-operator diagnostic on symmetric TypeVars.

    0.0.14release notes

  • Keyword arguments are now considered when unpacking a variadic argument.

    0.0.14release notes

  • Validates constructor arguments when a class is used as a decorator.

    0.0.13release notes

  • Improves completion suggestions inside class definitions.

    0.0.13release notes

  • Removes suggestions for redundant re-exports that share the same top-most module.

    0.0.13release notes

  • Avoids overload errors when detecting dataclass-on-tuple.

    0.0.13release notes

  • Uses str as the type of __file__ when applicable on imported modules.

    0.0.13release notes

  • Fixes excluding entire directories with --force-exclude.

    0.0.13release notes

  • Adds a diagnostic for overridden __setattr__ and __delattr__ methods.

    0.0.13release notes

  • Fixes the inferred MRO of functional namedtuple classes.

    0.0.13release notes

  • Fixes the return type for synthesized NamedTuple.__new__ methods.

    0.0.13release notes

  • Makes ModuleType and object attributes available on namespace packages.

    0.0.13release notes

  • Infers the implicit type of cls in __new__ methods.

    0.0.13release notes

  • Fixes unary operators on NewTypes of float or complex.

    0.0.13release notes

  • Avoids reporting overload errors for successful union variants.

    0.0.13release notes

  • Adds simple syntactic validation for the right-hand side of PEP-613 type aliases.

    0.0.13release notes

  • Fixes type aliases not expanding during overload resolution.

    0.0.13release notes

  • Does not add a subdiagnostic pointing to the TypeVar definition when the TypeVar is Self.

    0.0.13release notes

  • Recognizes string-literal types as subtypes of Sequence[Literal[chars]].

    0.0.13release notes

  • Fixes missing syntax highlighting for aliased import names.

    0.0.13release notes

  • Highlights interpolated parts in t-strings.

    0.0.13release notes

  • Applies special-case subscript inference when a union of tuples or an alias to a tuple type is subscripted.

    0.0.13release notes

  • Validates field names for typing.NamedTuple(...).

    0.0.13release notes

  • Casting an object to a TypedDict or union of TypedDicts no longer risks a panic.

    0.0.12release notes

  • Fixes the interaction between classmethod, contextmanager, and Self.

    0.0.12release notes

  • Supports dataclass_transform when used as a function call.

    0.0.12release notes

  • Narrows the right-hand side of ==, !=, is, and is not conditions when the left-hand side is not narrowable.

    0.0.12release notes

  • LSP completions show str instead of str | None when the inferred type is str.

    0.0.12release notes

  • Generated method signatures now reflect the signature of the user-provided method.

    0.0.12release notes

  • Avoids reporting grandparent-class Liskov violations when fixing them would introduce violations against a parent class.

    0.0.12release notes

  • Fixes a false positive for bounded type parameters used with NewType.

    0.0.12release notes

  • Fixes stack overflow for recursive type aliases containing tuple types.

    0.0.12release notes

  • Improves rendering of ReST directives in docstrings in the LSP server.

    0.0.12release notes

  • Improves type context support for __setitem__ dunder calls.

    0.0.12release notesrelease notes

  • Checks contravariant type variable bounds contravariantly during specialization inference.

    0.0.12release notes

  • Fixes the @Todo type for starred expressions.

    0.0.12release notes

  • Detects invalid @total_ordering applications in non-decorator contexts.

    0.0.12release notes

  • Improves disambiguation of types in diagnostics.

    0.0.12release notes

  • Narrowing uses the top materialization of classes; for example, type(x) is tuple intersects x with tuple[object, ...] rather than tuple[Unknown, ...].

    0.0.12release notes

  • Fixes incorrect type narrowing for if type(x) == y.

    0.0.12release notes

  • Calls to type() infer type[Unknown] when overload evaluation is ambiguous.

    0.0.12release notes

  • Applies type narrowing to walrus targets.

    0.0.12release notes

  • The LSP server no longer shows diagnostics for excluded files.

    0.0.11release notes

  • Fixes goto definition for relative imports in third-party files.

    0.0.11release notes

  • Declares support for Python 3.14.

    0.0.11release notes

  • Fixes handling of super with TypeVar-annotated self and cls parameters.

    0.0.11release notes

  • Only fully static pivots are considered when deriving transitive constraints.

    0.0.11release notes

  • Fixes handling of subclasses in Callables.

    0.0.10release notes

  • Improves simplification of intersections of tuples.

    0.0.10release notes

  • Improves type narrowing in calls to len().

    0.0.10release notes

  • Fixes comparisons and arithmetic involving NewTypes of float.

    0.0.10release notes

  • Fixes handling of ParamSpec in overloaded functions.

    0.0.10release notes

  • Fixes stale semantic tokens when the same document is opened with new content.

    0.0.10release notes

  • Fixes a stack overflow caused by a stack size that was too small.

    0.0.10release notes

  • Fixes several issues involving unannotated function return types.

    0.0.10release notes

  • Emit a diagnostic when a class decorator is not callable with a type.

    0.0.9release notes

  • Fix exhaustiveness inference for unions that include enums.

    0.0.9release notes

  • Avoid displaying a misleading inlay hint for unpacked tuple arguments.

    0.0.9release notes

  • Stop including property in subclasses properties.

    0.0.9release notes

  • Completions are fixed for decorators with missing declarations.

    0.0.8release notes

  • The invalid assignment diagnostic message is preserved when a definition is implicitly shadowed.

    0.0.8release notes

  • The wording of the unsupported-base sub-diagnostic is improved.

    0.0.8release notes

  • Improves the diagnostic for using callable in a type expression instead of collections.abc.Callable or typing.Callable.

    0.0.7release notes

  • Improves the diagnostic when accessing a function attribute on a Callable type.

    0.0.7release notes

  • Checks __delitem__ instead of __getitem__ when analyzing del x[k].

    0.0.7release notes

  • Synthesizes __delitem__ for TypedDict, allowing deletion of non-required keys.

    0.0.7release notes

  • Renders the entire diagnostic message in all output formats.

    0.0.7release notes

  • Fixes module resolution on network drives.

    0.0.7release notes

  • Fixes classification of modules in import aliases for semantic syntax highlighting.

    0.0.7release notes

  • Fixes incorrect self binding when @staticmethod is combined with other decorators.

    0.0.7release notes

  • Fixes the implementation of Top[Callable[..., object]].

    0.0.7release notes

  • Aborts printing diagnostics when Ctrl+C is pressed.

    0.0.6release notes

  • Respects debug text interpolation in f-strings.

    0.0.6release notes

  • Synthesizes a precise _fields attribute for NamedTuples.

    0.0.6release notes

  • Binds self with the instance in __get__.

    0.0.6release notes

  • Fixes a panic caused by unexpanded type aliases in implicit tuple aliases.

    0.0.6release notes

  • Avoids inserting type[T@f] when double-clicking on the inlay.

    0.0.6release notes

  • Synthesizes a precise _replace method for NamedTuples.

    0.0.6release notes

  • Supports == narrowing for tuples in unions with disjoint types.

    0.0.6release notes

  • Supports type[T] when T is a type alias to a union of types.

    0.0.6release notes

  • Fixes a panic from unstable union-type ordering in fixed-point iteration.

    0.0.6release notes

  • Fixes a debug-mode server panic when a user types a class definition by visiting class arguments in source order for semantic tokens.

    0.0.5release notes

  • Supports dict(...) calls in TypedDict contexts.

    0.0.5release notes

  • Understands that an enum class attribute defined using enum.nonmember has type int.

    0.0.5release notes

  • Respects intersections in iterations.

    0.0.5release notes

  • CLI output is cleared only between two successful checks.

    0.0.5release notes

  • The LSP server now gracefully handles client requests that cannot be deserialized.

    0.0.4release notes

  • Goto-declaration now works on the right-hand side of from-import statements that import a submodule.

    0.0.4release notes

  • Autocompletions no longer suggest keyword statements where only expressions are valid.

    0.0.4release notes

  • Some configuration panics in the LSP are fixed.

    0.0.4release notes

  • Multiline tokens are correctly encoded for clients that do not support them.

    0.0.4release notes

  • Metaclass-based transformers are recognized as instances of DataclassInstance.

    0.0.3release notes

  • Deferred values in keyword arguments and other contexts are respected in .pyi files.

    0.0.3release notes

  • Field specifier functions that accept **kwargs are handled.

    0.0.3release notes

  • Identical lower and upper bounds are no longer added multiple times when inferring specializations.

    0.0.3release notes

  • Type disambiguation is improved in many cases.

    0.0.3release notes

  • Diagnostics avoid extremely long lines when they encounter verbose types.

    0.0.3release notes

  • Converting a class constructor into a Callable no longer uses an implicit superclass annotation.

    0.0.2release notes

  • classmethod-ness is propagated through decorators that return Callable values.

    0.0.2release notes

  • The LSP server displays completions using their actual insertion text.

    0.0.2release notes

  • Rendering of default values for function arguments is improved.

    0.0.2release notes