mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
![]() ## Summary Previously, the `quoted-annotation` rule only removed quotes when `from __future__ import annotations` was present. However, there are some other cases in which this is also safe -- for example: ```python def foo(): x: "MyClass" ``` We already model these in the semantic model, so this PR just expands the scope of the rule to handle those. |
||
---|---|---|
.. | ||
fixtures | ||
package | ||
project | ||
disallowed_rule_names.txt |