ruff
6da52717 - Match left-hand side `types()` call in `types-comparison` (#6326)

Commit
2 years ago
Match left-hand side `types()` call in `types-comparison` (#6326) Follow-up to https://github.com/astral-sh/ruff/pull/6325, to avoid false positives in cases like: ```python if x == int: ... ``` Which is valid, since we don't know that we're comparing the type _of_ something -- we're comparing the type objects directly.
Author
Parents
Loading