astral-sh
ruff
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
[ty] Match ad hoc ignore checks to project walk semantics
micha/file-watching-ignore-adhoc
17 seconds ago
Cover nested explicit included roots
micha/file-watching-ignored
2 minutes ago
[ty] Modernize mdtest union setup
codex/mdtest-union-parameters
4 minutes ago
[ty] Allow enum member accesses on `self` (#25077) ## Summary This allows enum members to be resolved when accessed through a `Self`-typed enum instance. Previously, enum member lookup handled class-member patterns like `case Answer.YES:`, but not equivalent self-member patterns like: ```py class Answer(Enum): NO = 0 YES = 1 def is_yes(self) -> bool: match self: case self.YES: return True ``` The lookup reuses the receiver’s nominal class for nominal instances and bounded `Self` typevars before resolving enum metadata, so `case self.YES:` narrows the same way as `case Answer.YES:`.
main
17 minutes ago
View CodSpeed benchmarks
charlie/parser-bench-delimiter-depth
18 minutes ago
Reformat RUF013 example block and drop em dashes from docstring prose CI failed on the mkdocs job because `scripts/check_docs_formatted.py` read the rule's added section and reformatted it differently than what was checked in. Two small things were off in the new block: - The paragraph "User-defined types ..." was directly adjacent to the ```python fence with no blank `///` line between them, so the doc renderer ate the prose into the code block. - The trailing `value: Custom = None, # not flagged` had three spaces before the comment. ruff format normalizes that to one. Replaced the em dashes around "including subclasses and `Enum` types" with commas while I was here, so the prose reads the same and stops tripping reviewers who scan for AI-style punctuation. The CI suggested rewrite is now byte-equivalent to what `ruff format` emits locally on the example.
adityasingh2400:docs-ruf013-custom-type-limitation
20 minutes ago
[ty] Add async iteration protocols for error context
david/not-iterable-ctx
24 minutes ago
Review feedback
charlie/self-enum-member-bound
25 minutes ago
Latest Branches
CodSpeed Performance Gauge
+11%
View CodSpeed benchmarks
#25290
23 minutes ago
9764ee1
charlie/parser-bench-delimiter-depth
CodSpeed Performance Gauge
0%
[`ruff`] Document RUF013 false negative for user-defined types
#25289
25 minutes ago
d99998d
adityasingh2400:docs-ruf013-custom-type-limitation
CodSpeed Performance Gauge
0%
[ty] Error context for not-iterable diagnostics
#24944
32 minutes ago
650019f
david/not-iterable-ctx
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs