Skip to content

Commit 8406e8d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 97b2975 commit 8406e8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+79
-23
lines changed

bin/gen-pycodestyle-plugin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Call(NamedTuple):
4242
return cls(func.__name__, inspect.isgeneratorfunction(func), params)
4343

4444

45-
def lines() -> Generator[str, None, None]:
45+
def lines() -> Generator[str]:
4646
logical = []
4747
physical = []
4848

example-plugin/src/flake8_example_plugin/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module for an example Flake8 plugin."""
2+
23
from __future__ import annotations
34

45
from .off_by_default import ExampleTwo

example-plugin/src/flake8_example_plugin/off_by_default.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Our first example plugin."""
2+
23
from __future__ import annotations
34

45

example-plugin/src/flake8_example_plugin/on_by_default.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Our first example plugin."""
2+
23
from __future__ import annotations
34

45

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Packaging logic for Flake8."""
2+
23
from __future__ import annotations
34

45
import os

src/flake8/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
.. autofunction:: flake8.configure_logging
1010
1111
"""
12+
1213
from __future__ import annotations
1314

1415
import logging

src/flake8/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module allowing for ``python -m flake8 ...``."""
2+
23
from __future__ import annotations
34

45
from flake8.main.cli import main

src/flake8/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
This is the only submodule in Flake8 with a guaranteed stable API. All other
44
submodules are considered internal only and are subject to change.
55
"""
6+
67
from __future__ import annotations

src/flake8/api/legacy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Previously, users would import :func:`get_style_guide` from ``flake8.engine``.
44
In 3.0 we no longer have an "engine" module but we maintain the API from it.
55
"""
6+
67
from __future__ import annotations
78

89
import argparse

src/flake8/checker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Checker Manager and Checker classes."""
2+
23
from __future__ import annotations
34

45
import argparse
@@ -53,7 +54,7 @@
5354
@contextlib.contextmanager
5455
def _mp_prefork(
5556
plugins: Checkers, options: argparse.Namespace
56-
) -> Generator[None, None, None]:
57+
) -> Generator[None]:
5758
# we can save significant startup work w/ `fork` multiprocessing
5859
global _mp_plugins, _mp_options
5960
_mp_plugins, _mp_options = plugins, options

0 commit comments

Comments
 (0)