Skip to content

⬆️ deps: bump Python dev dependencies - #7

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/python-dev-dependencies
Nov 25, 2026
Merged

renovate[bot] merged 1 commit into
mainfrom
renovate/python-dev-dependencies

Conversation

@renovate

@renovate renovate Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
ruff (source, changelog) >=0.17.5 → >=0.17.6 age confidence
ty (changelog) >=0.0.104 → >=0.0.109 age confidence

Release Notes

astral-sh/ruff (ruff)

v0.17.6

Compare Source

Released on 2026-11-19.

Preview features
  • [flake8-type-checking] Add a fix for runtime-string-union (TC010) (#​15635)
Bug fixes
  • Fix handling of parenthesized duplicate items (B033, RUF068) (#​30493)
  • [pyflakes] Fix false negative when a name is assigned more than once (F823) (#​30524)
  • [pylint] Avoid false positive when collection is modified in loop (PLR1733, PLR1736) (#​30466)
  • [ruff] Avoid syntax error in useless-finally fix for inline try bodies (RUF072) (#​30349)
  • Treat relative imports from .__future__ as ordinary imports (#​30260)
Rule changes
  • [flake8-simplify] Avoid redundant bool wrappers in SIM208 fixes (#​30457)
  • [pyflakes] Ignore __traceback_hide__ in unused-variable (F841) (#​29600)
Performance
  • Decode in-memory notebooks directly from their source string (#​30385)
  • Short-circuit exact qualified-name checks (#​30058)
  • Stream JSON diagnostics to the output writer (#​30384)
Documentation
  • Fix the multiline string example in Known Deviations from Black (#​30447)
  • Include the category in individual rule documentation pages (#​30503)
Other changes
  • Update Rust toolchain to 1.100 and MSRV to 1.98 (#​30416)
Contributors
astral-sh/ty (ty)

v0.0.109

Compare Source

Released on 2026-11-23.

Bug fixes
  • Preserve type variables from the surrounding scope when inferring generic calls. For example, forwarding a list[T] through a generic helper can now preserve list[T] as the result type. (#​30423)
  • Use the receiver’s type to select overloads when a method is called through an alias. For example, an alias of a Redis method can now infer an awaitable return type for an asynchronous client. (#​29341)
  • Report unknown-argument when copy.replace or a generated __replace__ receives an init=False field. This applies to standard-library and Pydantic dataclasses, attrs classes, and other classes using dataclass_transform. (#​30850)
  • Preserve literals when union simplification discards the member that would have made them redundant. This also fixes a crash when checking some unions of recursive protocols. (#​30774)
  • Accept self as a field keyword in dataclass and Pydantic constructors and in dataclass and named tuple replacement methods. (#​29341)
  • Infer Self from the receiver and field arguments in generated dataclass and named tuple methods, so an inherited method can accept a base-class value for a field annotated with Self. (#​29341)
LSP server
  • Speed up member completions when looking up documentation for classes and enums with many attributes, such as Flet’s Icons and PySide6’s Qt.Key. (#​30707)
Diagnostic improvements
  • Rename the diagnostic for unknown rules in ignore comments to unknown-rule-in-ignore-comment. The old name, ignore-comment-unknown-rule, remains a compatibility alias in configuration and ignore comments. Run ty check --fix to update ignore comments automatically. (#​30827)
Performance improvements
Calls and overloads
  • Check nested calls such as NumPy’s dot(dot(a, b), c) faster when several outer overloads give the inner call the same expected return type. (#​30785)
  • Reuse successful inference for ordinary type variables and Self across generic calls with matching parameter and argument types, when there’s no expected return type or unpacked variadic parameter. (#​30815)
  • Speed up overload resolution by reusing comparisons of parameter and return types when several overloads match. (#​30781)
  • Check whether matching overloads cover all possible arguments faster when consecutive overloads infer the same argument types, as can happen with boto3 client calls. (#​30789)
  • Speed up repeated calls to overloads that share a type variable, such as TypedDict.get overloads that share the type of the default argument. (#​30813)
  • Check calls to ordinary functions faster when many arguments are captured by *args or **kwargs. (#​30734)
  • Speed up call inference by avoiding unnecessary copies of inferred argument types, including on the first pass of generic inference. (#​30826)
Generics and recursive types
  • Speed up type compatibility checks that must hold for every specialization of a type variable, including assignability and equivalence checks. (#​30748)
  • Solve generic type constraints faster by reusing results for pairs of constraints that yield no new information. (#​30788)
  • Speed up inference for recursive types whose generic arguments share nested unions. (#​30735)
  • Limit alias expansion and cycle checks to aliases and recursive types. (#​30828)
Classes and TypedDicts
  • Check assignments to instance attributes faster when repeated assignments give the attribute a wide union type, as in tokenizer state machines. (#​30775)
  • Speed up repeated comparisons between TypedDicts and unions, including recursive unions such as Pydantic’s CoreSchema. (#​30555)
  • Determine whether a class is abstract faster when its methods use decorators that preserve the method’s type. (#​30802)
  • Check enums with built-in tuple values faster when using the bundled standard-library stubs. (#​30777)
  • Check attribute assignments and deletions faster when the class and its bases are unfrozen. (#​30820)
  • Speed up checks for inherited dataclass ordering by looking up decorators only on base classes with ordering enabled. (#​30810)
Unions, narrowing, and literals
  • Speed up large match statements that rule out many literal values, such as integer opcode dispatch. (#​30736, #​30767)
  • Reuse the result of simplifying wide unions when narrowing types or merging assignments across branches. (#​30705)
  • Speed up narrowing when a name or attribute has a single possible type. With analysis.strict-generic-narrowing = true, this also lets an isinstance check narrow a value to a more specific type when a recursively inferred type argument was approximated as object. (#​30829)
  • Simplify unions of fixed-length tuples faster when their first elements have disjoint literal types. (#​30793)
  • Simplify unions faster when their members come from different unresolved inference cycles. (#​30791)
  • Speed up str.startswith checks on values with many possible literal strings, such as enum member names. (#​30811)
  • Reduce the cost of narrowing names, attributes, and subscripts, including when the relevant conditions are in the current scope. (#​30773, #​30816)
  • Simplify unions faster when they collapse to a single type. (#​30817)
Collections and iteration
  • Infer collection literals faster when several elements widen to the same type, such as a list of floats. Reuse the numeric unions ty infers for float and complex. (#​30796, #​30695)
  • Infer long tuple literals faster when many elements widen to the same built-in type. (#​30677)
  • Reuse the inferred element type when iterating over the same synchronous iterable type again. (#​30814)
File discovery, imports, and control flow
  • Speed up control flow analysis in large dispatch functions by reusing narrowing and reachability results along shared paths. (#​30787, #​30784)
  • Discover files faster with the default src.include pattern or when all exclude patterns apply only to directories. (#​30772, #​30794)
  • Check which code is reachable faster in large scopes, including those where wildcard imports bring many names into scope. (#​30771, #​30778)
  • Speed up control flow analysis when branches leave the same definitions in scope, including in deeply nested with blocks. (#​30803)
  • Resolve references to imported submodules faster after dotted imports such as import a.b.c. (#​30722)
Core type checking
  • Infer enum.auto() values from preceding members in both class-based and functional enums. For sequential integer values, ty counts from the last value through Python 3.10 and from the highest value for Python 3.11 and later targets. It can infer int when the exact value depends on runtime data or control flow. (#​30548)
  • Use the underscore-stripped name of an attrs field in constructors and copy.replace. For example, a field accessed as _id takes the keyword id by default. An explicit alias takes precedence. (#​30824)
  • Infer the specific exception type bound by except ... as exc when the handler uses a type alias for a tuple of exception classes or a union of an exception class and a tuple. (#​30758)
  • Recognize @field_name.validator on fields declared with attrs.field or attr.ib, fixing false missing-attribute errors and preserving the decorated method’s signature. (#​30839)
  • Fix false not-callable errors on attrs @field_name.default decorators for fields that ty treats as required constructor arguments. (#​30839)
  • Infer the enum type when conditional member declarations make an alias’s canonical member uncertain. (#​30548)
Contributors

v0.0.108

Compare Source

Released on 2026-11-22.

Breaking changes
  • Replace mismatched-type-name with eight rules. In configuration, CLI flags, and suppression comments, use the rule for each constructor you want to configure. (#​29957)
    • mismatched-newtype-name, mismatched-typevar-name, mismatched-paramspec-name, mismatched-typevartuple-name, mismatched-typeddict-name, and mismatched-type-alias-name warn by default.
    • mismatched-enum-name and mismatched-namedtuple-name are disabled by default. They check names only when ty can infer a single string literal.
Bug fixes
  • Fix a crash when a class unpacks a Generic base whose required type parameter follows one with a default. The invalid-generic-class diagnostic now points to the type parameters in the unpacked base. (#​30630)
  • Correctly check arguments forwarded through a ParamSpec when an unpacked tuple supplies both a wrapper's own positional parameters and arguments for the callback. (#​30594)
  • Fix false errors in nested calls that pass a lambda through an unresolved ParamSpec. (#​30547)
  • Preserve the type inferred for each overload when one overload leaves a parameter unannotated and another supplies an expected type. This avoids treating the call as ambiguous and inferring an Unknown result. (#​30549)
  • Preserve type-variable relationships through aliases such as type Id[T] = T, so ty can infer a generic call's result from the callback's return type. (#​30590)
  • Fix a bug where disabling invalid-generic-class also silenced shadowed-type-variable diagnostics in nested classes. (#​30588)
  • Fix a bug where suppressing an invalid-paramspec error on *args with # ty: ignore caused the error to reappear on **kwargs. (#​30595)
LSP server
  • Fix a bug in incremental updates that caused ty to re-index unchanged files containing standalone calls when you edited another file. (#​30759)
  • Speed up member completions when a partial name is typed by looking up documentation only for matching names. (#​30714)
  • Speed up semantic highlighting for part of a file by skipping functions, classes, and from imports outside the requested range. (#​30665)
  • Speed up folding range requests for files with large single-line statements. (#​30696)
  • Speed up inlay hints by skipping signature lookups for calls without positional arguments or when argument-name hints are disabled. (#​30688)
  • Speed up signature help, which shows a function's parameters and their types as you type a call. This affects editors that request parameter label offsets, especially for ASCII signatures with UTF-16 positions. (#​30711)
CLI
  • Keep warnings and debug logs above progress bars during indexing and checking, and show progress bars during verbose runs. (#​30527)
  • Generate ty check --output-format gitlab reports faster when the same rule produces many diagnostics in one file. (#​30724)
Diagnostic improvements
  • Rename the uv-metadata diagnostic to project-manager and clarify whether uv failed to load project metadata or set up a script environment. When project-manager.script = "uv" is set and ty cannot run a supported version of uv, the script diagnostic points to that setting. Concise output now includes uv's error when it cannot resolve a script's dependencies. (#​30528)
Core type checking
  • Recognize TypeVar, ParamSpec, TypeVarTuple, NewType, and TypeAliasType definitions even when their names are only known at runtime. By default, ty warns that it cannot verify the name and continues to use the defined type. (#​29957)
  • Infer the same type (float*) for -0.5 and +0.5 as for 0.5. (#​30720)
Performance improvements
Calls and overloads
  • Reuse more argument type compatibility checks across calls. (#​30483)
  • Speed up repeated calls to overloaded functions when the same argument types match several overloads. (#​30640)
  • Check overloaded calls with **-unpacked mappings faster by reusing the inferred type for each keyword. (#​30638)
  • Check calls such as boto3.client("s3") faster when many overloads expect different string literals. This optimization applies to files that are not open in the editor. (#​30642)
  • For tuple arguments, rule out overloads that expect unrelated types such as list or bytes sooner. Reuse the inferred type of a tuple literal when those parameter types give its elements no type context. (#​30667, #​30675)
  • Reuse function declarations when checking overloads and building signatures. (#​30686)
  • Avoid rebuilding function signatures when the return type already rules out TypeGuard and TypeIs. (#​30671)
Generics and recursive types
  • Solve complex type-variable constraints faster, such as those in Bokeh's overloaded constructors. (#​30564, #​30650, #​30658)
  • Stop searching once ty finds type arguments that let two invariant generic types, such as two list types, overlap. (#​30653)
  • When inferring type arguments, reuse earlier decisions about whether to consider the whole union or only some of its members. (#​30719, #​30749)
  • Infer Any from a generic base class faster when matching an argument to a union parameter. (#​30685)
  • Reuse candidate bounds across inference passes for generic calls with one argument. (#​30693)
  • Skip checking the order of constraints when a type variable has only one bound to solve. (#​30750)
  • Speed up type checking for deeply nested generic types that reuse the same union in several branches. (#​30645)
  • Reuse unchanged tuples and generic type arguments when simplifying recursively inferred types. (#​30690, #​30643)
  • Speed up detection of recursive type aliases declared with the type statement. (#​30682)
Classes and TypedDicts
  • Check enums with many members faster. (#​30634, #​30674)
  • Share checks for inherited field validators across constructor parameters in large Pydantic models. (#​30670)
  • Speed up checks for conflicts between inherited members in classes with generated methods, including dataclasses and Pydantic models. (#​30680, #​30725)
  • Reuse attribute lookups when checking multiple subclasses for conflicts between the same non-generic bases. (#​30676)
  • When checking a dictionary literal with string literal keys against a union of TypedDict types, rule out alternatives with missing required keys or conflicting literal tags before inferring field values. (#​30641)
  • Avoid copying every field of a TypedDict when checking a **kwargs: Unpack[SomeTypedDict] annotation. (#​30691)
  • Avoid redundant comparisons of mutable TypedDict fields with identical types, including recursive types. (#​30554)
  • Skip inherited field checks when a TypedDict does not inherit from another TypedDict. (#​30706)
Unions, narrowing, and literals
  • Display large unions of literals faster in hovers, completions, and diagnostics. (#​30684)
  • Reuse the result of simplifying the same wide union during type inference. (#​30741)
  • Speed up construction of unions that mix class objects with string literals, such as the types accepted by NumPy's dtype. (#​30698)
  • Speed up repeated comparisons involving the same subclass type, such as type[C]. (#​30716)
  • Speed up type narrowing for equality comparisons that leave the original type unchanged. (#​30723)
  • Speed up type inference after a truthiness check when the two branches recombine to give the original type. (#​30731)
  • Speed up checking augmented assignments such as |= on unions of literals. (#​30746, #​30733)
  • Infer list, set, and dictionary literals from their elements faster. (#​30689)
  • Parse and infer the types of bytes literals faster, including long runs of escape sequences and adjacent literals. (#​30729, #​30738)
Imports, name resolution, and control flow
  • Resolve dotted imports faster when they share a parent package. (#​30743)
  • Avoid repeatedly scanning the same __init__.py to check whether it declares a legacy namespace package. (#​30646)
  • Select the Python environment faster for files under a project source root. This speeds up workspace symbol searches and ty check runs that list many individual files. (#​30702)
  • Speed up indexing when many nested functions reference the same name. (#​30550)
  • Track nested dictionary keys in large collection literals faster. (#​30633, #​30647)
  • Find assignments to instance attributes such as self.title faster. (#​30678)
  • Skip unnecessary lookups for attributes and subscripts when no enclosing scope can supply a binding. (#​30700)
  • Resolve built-in names faster inside classes and other nested scopes. (#​30699)
  • Speed up reachability analysis in long functions with many standalone calls, including methods that alternate calls and assignments. (#​30561, #​30552)
  • Determine more quickly whether to suppress diagnostics in unreachable code after long sequences of standalone calls. (#​30740)
  • Speed up control flow analysis for try statements with one except clause and no finally block. (#​30739)
  • Skip unrelated assignments when checking whether an alias used for type narrowing is still valid. (#​30637)
Memory usage improvements
  • Use less memory when building large unions of bound methods backed by distinct functions. (#​30721)
  • Use less memory when simplifying unions of distinct class objects after truthiness checks. (#​30636)
  • Use less memory when simplifying large unions after isinstance checks, including unions of unrelated class types or disjoint literals combined with Any. (#​30737, #​30742)
  • Use less memory when checking wildcard imports by inferring imported names on demand and sharing information across names from the same import. (#​30727, #​30744)
  • When resolving wildcard re-exports, build an index of the imported module only if ty needs to infer a type to determine __all__. (#​30668)
  • Avoid caching a separate type check for each string or bytes literal that matches its expected built-in type, or for each tuple whose literal elements already match their expected types. (#​30556, #​30730)
Other changes
  • Make NamedTupleLike private in the ty_extensions stubs. (#​30567)
Contributors

v0.0.107

Compare Source

Released on 2026-11-18.

Preview features
  • Show progress and handle Ctrl-C during initial file indexing (#​30492)
Bug fixes
  • Fix a hang when specializing generic constructors (#​30510)
  • Isolate uv-managed scripts from the project environment (#​30461)
Other changes
  • Reject union narrowing attempts with failed nested calls (#​30217)
  • Skip enum-complement recognition without exclusions (#​30539)
Contributors

v0.0.106

Compare Source

Released on 2026-11-18.

Breaking changes
  • Split incompatible TypeIs narrowings into two new rules (#​29949)
Bug fixes
  • Avoid exponential constraint search in generic constructor inference (#​30474)
  • Check fixed prefixes when assigning ParamSpec callables to gradual Concatenate (#​30470)
  • Fix stack overflow checking a generic base initializer (#​30473)
  • Fix variance inference for frozen Pydantic models on 3.12 and earlier (#​30452)
  • Preserve compatible overloads when partially binding a union argument (#​30446)
  • Preserve fixed parameters when comparing gradual callables (#​30509)
LSP server
  • Report workspace diagnostics while scripts initialize (#​30410)
  • Sync script environments when opening the file, when using diagnosticMode: "openFilesOnly" (#​30381)
Configuration changes
  • Add project-manager.script = "uv" (#​30489)
  • Resolve script file settings independently of uv (#​30407)
Other changes
  • Auto-generate reference documentation for ty-extensions (#​5056)
  • Handle TypedDict union pairs before other simplifications (#​30516)
Contributors

v0.0.105

Compare Source

Released on 2026-11-17.

Breaking changes
  • Split missing-module-member out of import-not-found (#​30342)
  • Split invalid dataclass __post_init__ signatures into a separate rule (#​30335)
  • Use the constraints rule for single-constraint TypeVar calls (#​30340)
Bug fixes
  • Fix stale diagnostic when using diagnosticMode: "workspace" (#​30415)
  • Preserve type context kind when propagating to nested expressions (#​30280)
  • Speed up materialization of nested generic types (#​30462)
LSP server
  • Keep the language server responsive when the worker queue fills (#​30127)
  • Speed-up find references in workspaces with many unicode files (#​30402)
  • Update imports when renaming Python package folders (#​30084)
Memory usage improvements
  • Skip union comparisons for unrelated nominal classes (#​30429)
Other changes
  • Avoid definition lookups in recursive TypedDict comparisons (#​30444)
  • Avoid preferring inferred attribute types during call inference (#​30151)
  • Avoid tracking ordinary instances twice in type searches (#​30438)
  • Check protocol member names before specializing the source interface (#​30445)
  • Ignore type context when inferring assert_never arguments (#​30389)
  • Reuse unpacked field types across TypedDict union candidates (#​30437)
  • Skip discarded TypedDict validation diagnostics in union matching (#​30435)
  • Skip repeated validation lookups for checked overloads (#​30436)
Contributors

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/python-dev-dependencies branch 2 times, most recently from 549538c to 0966d57 Compare November 23, 2026 23:10
@renovate
renovate Bot force-pushed the renovate/python-dev-dependencies branch from 0966d57 to 4d2726e Compare November 24, 2026 22:41
@renovate
renovate Bot merged commit a3b5400 into main Nov 25, 2026
8 checks passed
@renovate
renovate Bot deleted the renovate/python-dev-dependencies branch November 25, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants