mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-01 03:26:52 +00:00
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:
commit
79148a02ee
7 changed files with 9 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue