Merge branch '3_7' into 'master'

Remove noqa comments now that 3.7 has been released

See merge request pycqa/flake8!301
This commit is contained in:
Anthony Sottile 2019-02-01 05:53:36 +00:00
commit 79148a02ee
7 changed files with 9 additions and 10 deletions

View file

@ -5,7 +5,7 @@ import logging
import signal
import sys
import tokenize
from typing import List, Optional # noqa: F401 (until flake8 3.7)
from typing import List, Optional
try:
import multiprocessing

View file

@ -4,7 +4,7 @@ from __future__ import print_function
import logging
import sys
import time
from typing import List, Optional, Sequence # noqa: F401 (until flake8 3.7)
from typing import List, Optional, Sequence
import flake8
from flake8 import checker

View file

@ -1,5 +1,5 @@
"""Command-line implementation of flake8."""
from typing import List, Optional # noqa: F401 (until flake8 3.7)
from typing import List, Optional
from flake8.main import application

View file

@ -1,6 +1,6 @@
"""The logic for Flake8's integration with setuptools."""
import os
from typing import List # noqa: F401 (until flake8 3.7)
from typing import List
import setuptools

View file

@ -3,7 +3,7 @@ import contextlib
import logging
import sys
import tokenize
from typing import List # noqa: F401 (until flake8 3.7)
from typing import List
import flake8
from flake8 import defaults

View file

@ -7,7 +7,7 @@ import itertools
import linecache
import logging
import sys
from typing import Optional, Union # noqa: F401 (until flake8 3.7)
from typing import Optional, Union
from flake8 import defaults
from flake8 import statistics

View file

@ -8,14 +8,13 @@ import platform
import re
import sys
import tokenize
from typing import Callable, Dict, Generator # noqa: F401 (until flake8 3.7)
from typing import List, Pattern, Sequence # noqa: F401 (until flake8 3,7)
from typing import Tuple, Union # noqa: F401 (until flake8 3.7)
from typing import Callable, Dict, Generator, List, Pattern, Sequence, Tuple
from typing import Union
from flake8 import exceptions
if False: # `typing.TYPE_CHECKING` was introduced in 3.5.2
from flake8.plugins.manager import Plugin # noqa: F401 (until flake8 3.7)
from flake8.plugins.manager import Plugin
DIFF_HUNK_REGEXP = re.compile(r"^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@.*$")
COMMA_SEPARATED_LIST_RE = re.compile(r"[,\s]")