ruff
519a6500 - Mark quotes as unnecessary for non-evaluated annotations (#11485)

Commit
1 year ago
Mark quotes as unnecessary for non-evaluated annotations (#11485) ## Summary Similar to #11414, this PR extends `UP037` to flag quoted annotations that are located in positions that won't be evaluated at runtime. For example, the quotes on `Tuple` are unnecessary in: ```python from typing import TYPE_CHECKING if TYPE_CHECKING: from typing import Tuple def foo(): x: "Tuple[int, int]" = (0, 0) foo() ```
Author
Parents
Loading