astral-sh
ruff
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
[ty] Emit "arguments after `**` must be a mapping" before overload resolution (#22921) ## Summary Closes astral-sh/ty#2653 Move the KeywordsNotAMapping check from bind.rs to builder.rs, matching the existing pattern for starred argument iterability. This ensures users see "must be a mapping type" instead of "no matching overload" when passing a non-mapping **kwargs to an overloaded function. ## Test Plan Added test case for **kwargs with non-mapping types on overloaded functions in function.md.
main
36 minutes ago
[ty] remove `static_expression_truthiness`
mtshiba:remove-static-expression-truthiness
41 minutes ago
[ty] Fix dataclass_transform detection for inherited metaclasses When a class inherits from a base class whose metaclass has `@dataclass_transform`, the synthesized `__init__` method was not being generated. This affected SQLModel which inherits from Pydantic's BaseModel (which uses a metaclass with `@dataclass_transform`). The fix modifies the MRO lookup in `code_generator_of_static_class` to also check if base classes have a `dataclass_transform` metaclass, not just if they are directly decorated with `dataclass_transformer_params`. This allows: ```python class User(SQLModel): id: int name: str # Now correctly infers: (self, *, id: int, name: str) -> None # Previously fell back to: def __init__(__pydantic_self__, **data: Any) -> None reveal_type(User.__init__) ``` Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
rayzeller:fix/sqlmodel-dataclass-transform-inheritance
2 hours ago
[ty] loop control flow analysis using loop header definitions while loop conditions are always evaluated at least once new swap test case new test
jack/cyclic_control_flow
2 hours ago
deleted_reachability within loops
jack/cyclic_control_flow
3 hours ago
Tweak
charlie/proto
6 hours ago
refactoring and deduplication
jack/cyclic_control_flow
7 hours ago
Minimize
charlie/proto
7 hours ago
Active Branches
[ty] remove `static_expression_truthiness` and improve reachability analysis
last run
41 minutes ago
#22971
CodSpeed Performance Gauge
0%
[ty] Fix dataclass_transform detection for inherited metaclasses
last run
2 hours ago
#22970
CodSpeed Performance Gauge
0%
[ty] loop control flow analysis using loop header definitions
last run
2 hours ago
#22794
CodSpeed Performance Gauge
-27%
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs