mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Fixing flake8 F403, F405 errors
This commit is contained in:
12
.flake8
12
.flake8
@@ -10,14 +10,12 @@
|
||||
# 356 E305 expected 2 blank lines
|
||||
|
||||
# Nice-to-haves ignored for now
|
||||
# 221 E128 continuation line under-indented for visual indent
|
||||
# 44 E127 continuation line over-indented for visual indent
|
||||
# 152 E128 continuation line under-indented for visual indent
|
||||
# 43 E127 continuation line over-indented for visual indent
|
||||
|
||||
[flake8]
|
||||
ignore = F401, F811, E127, E128, E301, E302, E305, E501, E701, E704, B303
|
||||
ignore = F401, F811, F821, E127, E128, E301, E302, E305, E501, E701, E704, E999, B303
|
||||
|
||||
# Errors that we need to fix before enabling flake8 by default:
|
||||
# 921 F821 undefined name
|
||||
# 26 F403 from * import used
|
||||
# 7 E999 invalid syntax
|
||||
# 5 F405 name undefined or from * imports
|
||||
# 936 F821 undefined name - FIXME: re-enable and add missing imports
|
||||
# 6 E999 invalid syntax - FIXME: re-enable after flake8 is running from Python 3.6
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from Crypto.Util.py21compat import *
|
||||
from Crypto.Util.py3compat import *
|
||||
from Crypto.Util.py21compat import * # noqa: F403
|
||||
from Crypto.Util.py3compat import * # noqa: F403
|
||||
|
||||
def new(nbits, prefix: Any = ..., suffix: Any = ..., initial_value: int = ..., overflow: int = ..., little_endian: bool = ..., allow_wraparound: bool = ..., disable_shortcut: bool = ...): ...
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, AnyStr, List
|
||||
from genericpath import *
|
||||
from genericpath import * # noqa: F403
|
||||
|
||||
curdir = ... # type: Any
|
||||
pardir = ... # type: Any
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from sqlite3.dbapi2 import *
|
||||
from sqlite3.dbapi2 import * # noqa: F403
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from xml.etree.ElementTree import *
|
||||
from xml.etree.ElementTree import * # noqa: F403
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from xml.etree.ElementTree import *
|
||||
from xml.etree.ElementTree import * # noqa: F403
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from xml.etree.ElementTree import *
|
||||
from xml.etree.ElementTree import * # noqa: F403
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from xml.etree.ElementTree import *
|
||||
from xml.etree.ElementTree import * # noqa: F403
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from xml.etree.ElementTree import *
|
||||
from xml.etree.ElementTree import * # noqa: F403
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from ._base import *
|
||||
from .thread import *
|
||||
from .process import *
|
||||
from ._base import * # noqa: F403
|
||||
from .thread import * # noqa: F403
|
||||
from .process import * # noqa: F403
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from _curses import *
|
||||
from _curses import * # noqa: F403
|
||||
# Stubgen imports a python version of has_key only if it's not present
|
||||
# in _curses (which it is in this stub)
|
||||
# from .has_key import has_key as has_key
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from sqlite3.dbapi2 import *
|
||||
from sqlite3.dbapi2 import * # noqa: F403
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from tkinter.constants import *
|
||||
from tkinter.constants import * # noqa: F403
|
||||
|
||||
TclError = ... # type: Any
|
||||
wantobjects = ... # type: Any
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
from typing import Any, Union, TextIO
|
||||
from builtins import open as _builtin_open
|
||||
from token import *
|
||||
from token import * # noqa: F403
|
||||
|
||||
COMMENT = ... # type: Any
|
||||
NL = ... # type: Any
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from xml.etree.ElementTree import *
|
||||
from xml.etree.ElementTree import * # noqa: F403
|
||||
|
||||
2
third_party/2/scribe/scribe.pyi
vendored
2
third_party/2/scribe/scribe.pyi
vendored
@@ -5,7 +5,7 @@
|
||||
from typing import Any
|
||||
|
||||
import fb303.FacebookService
|
||||
from .ttypes import *
|
||||
from .ttypes import * # noqa: F403
|
||||
from thrift.Thrift import TProcessor
|
||||
|
||||
class Iface(fb303.FacebookService.Iface):
|
||||
|
||||
2
third_party/2/six/moves/cPickle.pyi
vendored
2
third_party/2/six/moves/cPickle.pyi
vendored
@@ -3,4 +3,4 @@
|
||||
#
|
||||
# Stubs for six.moves.cPickle (Python 2.7)
|
||||
|
||||
from cPickle import *
|
||||
from cPickle import * # noqa: F403
|
||||
|
||||
2
third_party/2/sqlalchemy/databases/mysql.pyi
vendored
2
third_party/2/sqlalchemy/databases/mysql.pyi
vendored
@@ -1 +1 @@
|
||||
from sqlalchemy.dialects.mysql.base import *
|
||||
from sqlalchemy.dialects.mysql.base import * # noqa: F403
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
|
||||
from typing import Any
|
||||
|
||||
from .TProtocol import *
|
||||
from .TProtocol import TProtocolBase
|
||||
from .TProtocol import * # noqa: F403
|
||||
|
||||
class TBinaryProtocol(TProtocolBase):
|
||||
VERSION_MASK = ... # type: Any
|
||||
|
||||
3
third_party/2/thrift/protocol/TProtocol.pyi
vendored
3
third_party/2/thrift/protocol/TProtocol.pyi
vendored
@@ -4,7 +4,8 @@
|
||||
|
||||
from typing import Any
|
||||
|
||||
from thrift.Thrift import *
|
||||
from thrift.Thrift import TException
|
||||
from thrift.Thrift import * # noqa: F403
|
||||
|
||||
class TProtocolException(TException):
|
||||
UNKNOWN = ... # type: Any
|
||||
|
||||
3
third_party/2/thrift/transport/TSocket.pyi
vendored
3
third_party/2/thrift/transport/TSocket.pyi
vendored
@@ -4,7 +4,8 @@
|
||||
|
||||
from typing import Any
|
||||
|
||||
from .TTransport import *
|
||||
from .TTransport import TTransportBase, TServerTransportBase
|
||||
from .TTransport import * # noqa: F403
|
||||
|
||||
class TSocketBase(TTransportBase):
|
||||
handle = ... # type: Any
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Optional
|
||||
from Crypto.PublicKey.pubkey import *
|
||||
|
||||
from Crypto.PublicKey.pubkey import pubkey
|
||||
from Crypto.PublicKey.pubkey import * # noqa: F403
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from Crypto.Util.number import *
|
||||
from Crypto.Util.number import * # noqa: F403
|
||||
|
||||
__revision__ = ... # type: str
|
||||
|
||||
|
||||
2
third_party/3/six/moves/cPickle.pyi
vendored
2
third_party/3/six/moves/cPickle.pyi
vendored
@@ -3,4 +3,4 @@
|
||||
#
|
||||
# Stubs for six.moves.cPickle (Python 3.2)
|
||||
|
||||
from pickle import *
|
||||
from pickle import * # noqa: F403
|
||||
|
||||
Reference in New Issue
Block a user