Skip to content

⬆️ deps: bump Python dev dependencies - #66

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/python-dev-dependencies
Nov 24, 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
Contributor

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.108 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.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 from 34dfcd6 to 3a5deec Compare November 23, 2026 05:55
@renovate
renovate Bot force-pushed the renovate/python-dev-dependencies branch from 3a5deec to 3bf6201 Compare November 23, 2026 21:54
@renovate
renovate Bot merged commit 58f5264 into main Nov 24, 2026
8 checks passed
@renovate
renovate Bot deleted the renovate/python-dev-dependencies branch November 24, 2026 03:34
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