Change8

0.11.4

📦 ruffView on GitHub →
4 features🐛 2 fixes🔧 3 symbols

Summary

Ruff 0.11.4 adds preview support for new syntax‑error checks and the RUF102 rule, and fixes issues with match pattern assignments and typing.Annotated handling.

✨ New Features

  • Implement `invalid-rule-code` as `RUF102` (preview) – see PR #17138.
  • Detect duplicate keys in `match` mapping patterns (preview) – see PR #17129.
  • Detect duplicate attributes in `match` class patterns (preview) – see PR #17186.
  • Detect invalid syntax in annotations (preview) – see PR #17101.

🐛 Bug Fixes

  • Fix multiple assignment error for class fields in `match` patterns – see PR #17184.
  • Do not skip visiting non‑tuple slice in `typing.Annotated` subscripts – see PR #17201.

🔧 Affected Symbols

RUF102match pattern handlingtyping.Annotated