-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
First of all, thank you so much for a great linter! We recently moved from flake8 to ruff, which massively sped up our linting step, and allowed us to check for things we couldn't previously use flake8 plugins for, like flake8-type-checking, due to having to support Python 3.6. This just worked with ruff, without any hassle! 👏
We recently updated one of our repositories to a newer version of Python, and wanted to turn on UP006, specifically, when we ran into what we believe is a bug.
If the typing annotation that includes a generic from typing that is no longer necessary, according to PEP585, the UP006 rule does not flag it as an error.
from typing import Dict
does_not_flag: "Dict[str, str]" = {}
does_flag: Dict[str, str] = {}The command used to run is ruff check up006.py --isolated --select UP006, and the output of ruff --version is ruff 0.0.256.
Once again, thanks for all your work!