|
1 | 1 | # flake8-annotations |
2 | | -[](https://pypi.org/project/flake8-annotations/) |
| 2 | +[](https://pypi.org/project/flake8-annotations/) |
3 | 3 | [](https://pypi.org/project/flake8-annotations/) |
4 | 4 | [](https://github.com/sco1/flake8-annotations/blob/main/LICENSE) |
5 | 5 | [](https://results.pre-commit.ci/latest/github/sco1/flake8-annotations/main) |
6 | | -[](https://github.dev/sco1/flake8-annotations) |
7 | 6 |
|
8 | 7 | `flake8-annotations` is a plugin for [Flake8](http://flake8.pycqa.org/en/latest/) that detects the absence of [PEP 3107-style](https://www.python.org/dev/peps/pep-3107/) function annotations. |
9 | 8 |
|
@@ -32,7 +31,7 @@ cog.out( |
32 | 31 | ]]] --> |
33 | 32 | ```bash |
34 | 33 | $ flake8 --version |
35 | | -7.0.0 (flake8-annotations: 3.1.0, mccabe: 0.7.0, pycodestyle: 2.11.1, pyflakes: 3.2.0) CPython 3.12.3 on Darwin |
| 34 | +7.0.0 (flake8-annotations: 3.1.1, mccabe: 0.7.0, pycodestyle: 2.11.1, pyflakes: 3.2.0) CPython 3.12.3 on Darwin |
36 | 35 | ``` |
37 | 36 | <!-- [[[end]]] --> |
38 | 37 |
|
@@ -141,9 +140,10 @@ Suppress `ANN401` for dynamically typed `*args` and `**kwargs`. |
141 | 140 | Default: `False` |
142 | 141 |
|
143 | 142 | ### `--respect-type-ignore` |
144 | | -Suppress linting errors for functions annotated with a `# type: ignore` comment. |
| 143 | +Suppress linting errors for functions annotated with a `# type: ignore` comment. Support is also provided for module-level blanket ignores (see: [mypy: Ignoring a whole file](https://mypy.readthedocs.io/en/stable/common_issues.html#ignoring-a-whole-file)). |
145 | 144 |
|
146 | 145 | **NOTE:** Type ignore tags are not considered, e.g. `# type: ignore[arg-type]` is treated the same as `# type: ignore`. |
| 146 | +**NOTE:** Module-level suppression is only considered for the `# mypy: ignore-errors` or `# type: ignore` tags when provided as the sole contents of the first line of the module. |
147 | 147 |
|
148 | 148 | Default: `False` |
149 | 149 |
|
|
0 commit comments