False-positive TCH003
: lint.typing-modules
setting is not honored in the typing module itself
#11733
Labels
bug
Something isn't working
lint.typing-modules
allows defining compatibility modules whose exports will be treated the same as the exports from thetyping
module. However, this does not seem to work in the module itself -ruff
does not seem to understand thatTYPE_CHECKING
defines a type-checking block in this example:bug.py
pyproject.toml
ruff check bug.py
ruff --version
The text was updated successfully, but these errors were encountered: