diff --git a/third_party/2and3/markupsafe/__init__.pyi b/third_party/2and3/markupsafe/__init__.pyi index 6074f0b28..f73d05dfc 100644 --- a/third_party/2and3/markupsafe/__init__.pyi +++ b/third_party/2and3/markupsafe/__init__.pyi @@ -1,7 +1,7 @@ import string import sys from collections import Mapping -from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Text, Tuple, Union +from typing import Any, Callable, Iterable, List, Optional, Sequence, Text, Tuple, Union from markupsafe._compat import text_type from markupsafe._native import escape as escape, escape_silent as escape_silent, soft_unicode as soft_unicode diff --git a/third_party/2and3/markupsafe/_compat.pyi b/third_party/2and3/markupsafe/_compat.pyi index 73d5aa6b2..a3c2bc7fe 100644 --- a/third_party/2and3/markupsafe/_compat.pyi +++ b/third_party/2and3/markupsafe/_compat.pyi @@ -1,5 +1,5 @@ import sys -from typing import Any, Iterator, Mapping, Text, Tuple, TypeVar +from typing import Iterator, Mapping, Tuple, TypeVar _K = TypeVar("_K") _V = TypeVar("_V") diff --git a/third_party/2and3/markupsafe/_constants.pyi b/third_party/2and3/markupsafe/_constants.pyi index a0d67ed79..cd051158d 100644 --- a/third_party/2and3/markupsafe/_constants.pyi +++ b/third_party/2and3/markupsafe/_constants.pyi @@ -1,3 +1,3 @@ -from typing import Any, Dict, Text +from typing import Dict, Text HTML_ENTITIES: Dict[Text, int] diff --git a/third_party/2and3/markupsafe/_native.pyi b/third_party/2and3/markupsafe/_native.pyi index 0af37e079..01eb723f4 100644 --- a/third_party/2and3/markupsafe/_native.pyi +++ b/third_party/2and3/markupsafe/_native.pyi @@ -1,7 +1,7 @@ from typing import Text, Union from . import Markup -from ._compat import string_types, text_type +from ._compat import text_type def escape(s: Union[Markup, Text]) -> Markup: ... def escape_silent(s: Union[None, Markup, Text]) -> Markup: ... diff --git a/third_party/2and3/markupsafe/_speedups.pyi b/third_party/2and3/markupsafe/_speedups.pyi index 0af37e079..01eb723f4 100644 --- a/third_party/2and3/markupsafe/_speedups.pyi +++ b/third_party/2and3/markupsafe/_speedups.pyi @@ -1,7 +1,7 @@ from typing import Text, Union from . import Markup -from ._compat import string_types, text_type +from ._compat import text_type def escape(s: Union[Markup, Text]) -> Markup: ... def escape_silent(s: Union[None, Markup, Text]) -> Markup: ... diff --git a/third_party/2and3/maxminddb/compat.pyi b/third_party/2and3/maxminddb/compat.pyi index 74f74cd40..c3de66ca4 100644 --- a/third_party/2and3/maxminddb/compat.pyi +++ b/third_party/2and3/maxminddb/compat.pyi @@ -1,4 +1,3 @@ -from ipaddress import IPv4Address, IPv6Address from typing import Any def compat_ip_address(address: object) -> Any: ... diff --git a/third_party/2and3/nmap/nmap.pyi b/third_party/2and3/nmap/nmap.pyi index 066dc0330..bcf8ed96e 100644 --- a/third_party/2and3/nmap/nmap.pyi +++ b/third_party/2and3/nmap/nmap.pyi @@ -1,4 +1,3 @@ -import sys from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Text, Tuple, TypeVar from typing_extensions import TypedDict diff --git a/third_party/2and3/pyVmomi/vim/__init__.pyi b/third_party/2and3/pyVmomi/vim/__init__.pyi index 358382138..c24782d89 100644 --- a/third_party/2and3/pyVmomi/vim/__init__.pyi +++ b/third_party/2and3/pyVmomi/vim/__init__.pyi @@ -3,7 +3,6 @@ from enum import Enum from typing import Any, List from ..vmodl.query import PropertyCollector -from . import event, fault, view from .event import EventManager from .option import OptionManager from .view import ViewManager diff --git a/third_party/2and3/pyVmomi/vmodl/__init__.pyi b/third_party/2and3/pyVmomi/vmodl/__init__.pyi index 914f9bb3d..1287d9edb 100644 --- a/third_party/2and3/pyVmomi/vmodl/__init__.pyi +++ b/third_party/2and3/pyVmomi/vmodl/__init__.pyi @@ -1,7 +1,5 @@ from typing import Any -from . import fault, query - class DynamicProperty: name: str val: Any diff --git a/third_party/2and3/pymysql/__init__.pyi b/third_party/2and3/pymysql/__init__.pyi index 4f01043c9..35532caa8 100644 --- a/third_party/2and3/pymysql/__init__.pyi +++ b/third_party/2and3/pymysql/__init__.pyi @@ -1,5 +1,5 @@ import sys -from typing import Callable, FrozenSet, Tuple, Union +from typing import Callable, FrozenSet, Tuple from .connections import Connection as _Connection from .constants import FIELD_TYPE as FIELD_TYPE diff --git a/third_party/2and3/requests/__init__.pyi b/third_party/2and3/requests/__init__.pyi index 4cd8d2f1e..c71416f65 100644 --- a/third_party/2and3/requests/__init__.pyi +++ b/third_party/2and3/requests/__init__.pyi @@ -3,7 +3,6 @@ import logging from typing import Any -from . import api, exceptions, models, packages, sessions, status_codes, utils from .api import ( delete as delete, get as get, diff --git a/third_party/2and3/requests/adapters.pyi b/third_party/2and3/requests/adapters.pyi index 118dae0c9..d1efa51d6 100644 --- a/third_party/2and3/requests/adapters.pyi +++ b/third_party/2and3/requests/adapters.pyi @@ -2,7 +2,7 @@ from typing import Any, Container, Mapping, Optional, Text, Tuple, Union -from . import auth, compat, cookies, exceptions, models, structures, utils +from . import cookies, exceptions, models, structures, utils from .packages.urllib3 import exceptions as urllib3_exceptions, poolmanager, response from .packages.urllib3.util import retry diff --git a/third_party/2and3/requests/api.pyi b/third_party/2and3/requests/api.pyi index 9eb37c3da..6fcda5768 100644 --- a/third_party/2and3/requests/api.pyi +++ b/third_party/2and3/requests/api.pyi @@ -1,7 +1,6 @@ # Stubs for requests.api (Python 3) -import sys -from typing import IO, Any, Iterable, Mapping, MutableMapping, Optional, Text, Tuple, Union +from typing import Iterable, Mapping, Optional, Text, Tuple, Union from .models import Response from .sessions import _Data diff --git a/third_party/2and3/requests/auth.pyi b/third_party/2and3/requests/auth.pyi index d0b9d8275..0d4c70ff6 100644 --- a/third_party/2and3/requests/auth.pyi +++ b/third_party/2and3/requests/auth.pyi @@ -2,7 +2,7 @@ from typing import Any, Text, Union -from . import compat, cookies, models, status_codes, utils +from . import cookies, models, status_codes, utils extract_cookies_to_jar = cookies.extract_cookies_to_jar parse_dict_header = utils.parse_dict_header diff --git a/third_party/2and3/requests/compat.pyi b/third_party/2and3/requests/compat.pyi index 355b517ec..b83b56f52 100644 --- a/third_party/2and3/requests/compat.pyi +++ b/third_party/2and3/requests/compat.pyi @@ -1,6 +1,5 @@ # Stubs for requests.compat (Python 3.4) import collections -from typing import Any OrderedDict = collections.OrderedDict diff --git a/third_party/2and3/requests/cookies.pyi b/third_party/2and3/requests/cookies.pyi index c8c748319..5e3743b70 100644 --- a/third_party/2and3/requests/cookies.pyi +++ b/third_party/2and3/requests/cookies.pyi @@ -1,11 +1,8 @@ # Stubs for requests.cookies (Python 3) -import collections import sys from typing import Any, MutableMapping -from . import compat - if sys.version_info < (3, 0): from cookielib import CookieJar else: diff --git a/third_party/2and3/requests/models.pyi b/third_party/2and3/requests/models.pyi index a230452f4..46ac91849 100644 --- a/third_party/2and3/requests/models.pyi +++ b/third_party/2and3/requests/models.pyi @@ -1,10 +1,9 @@ # Stubs for requests.models (Python 3) import datetime -import types -from typing import Any, Dict, Iterator, List, MutableMapping, Optional, Text, Union +from typing import Any, Dict, Iterator, List, Optional, Text, Union -from . import auth, compat, cookies, exceptions, hooks, status_codes, structures, utils +from . import auth, cookies, exceptions, hooks, status_codes, structures, utils from .cookies import RequestsCookieJar from .packages.urllib3 import exceptions as urllib3_exceptions, fields, filepost, util diff --git a/third_party/2and3/requests/packages/urllib3/connection.pyi b/third_party/2and3/requests/packages/urllib3/connection.pyi index 0a7e25317..8f68d67bc 100644 --- a/third_party/2and3/requests/packages/urllib3/connection.pyi +++ b/third_party/2and3/requests/packages/urllib3/connection.pyi @@ -4,7 +4,7 @@ import ssl import sys from typing import Any -from . import exceptions, packages, util +from . import exceptions, util from .packages import ssl_match_hostname from .util import ssl_ diff --git a/third_party/2and3/requests/packages/urllib3/connectionpool.pyi b/third_party/2and3/requests/packages/urllib3/connectionpool.pyi index 119e5e895..90832482d 100644 --- a/third_party/2and3/requests/packages/urllib3/connectionpool.pyi +++ b/third_party/2and3/requests/packages/urllib3/connectionpool.pyi @@ -1,6 +1,6 @@ from typing import Any -from . import connection, exceptions, packages, request, response +from . import connection, exceptions, request, response from .connection import BaseSSLError as BaseSSLError, ConnectionError as ConnectionError, HTTPException as HTTPException from .packages import ssl_match_hostname from .util import connection as _connection, retry, timeout, url diff --git a/third_party/2and3/requests/packages/urllib3/fields.pyi b/third_party/2and3/requests/packages/urllib3/fields.pyi index ce4543549..246010a18 100644 --- a/third_party/2and3/requests/packages/urllib3/fields.pyi +++ b/third_party/2and3/requests/packages/urllib3/fields.pyi @@ -2,8 +2,6 @@ from typing import Any -from . import packages - def guess_content_type(filename, default=...): ... def format_header_param(name, value): ... diff --git a/third_party/2and3/requests/packages/urllib3/filepost.pyi b/third_party/2and3/requests/packages/urllib3/filepost.pyi index 44ec71bfe..49bd7e046 100644 --- a/third_party/2and3/requests/packages/urllib3/filepost.pyi +++ b/third_party/2and3/requests/packages/urllib3/filepost.pyi @@ -1,10 +1,7 @@ from typing import Any -# from .packages import six -from . import fields, packages +from . import fields -# six = packages.six -# b = six.b RequestField = fields.RequestField writer: Any diff --git a/third_party/2and3/requests/packages/urllib3/util/retry.pyi b/third_party/2and3/requests/packages/urllib3/util/retry.pyi index 04ddcb681..cc4196b13 100644 --- a/third_party/2and3/requests/packages/urllib3/util/retry.pyi +++ b/third_party/2and3/requests/packages/urllib3/util/retry.pyi @@ -1,6 +1,6 @@ from typing import Any -from .. import exceptions, packages +from .. import exceptions ConnectTimeoutError = exceptions.ConnectTimeoutError MaxRetryError = exceptions.MaxRetryError diff --git a/third_party/2and3/requests/status_codes.pyi b/third_party/2and3/requests/status_codes.pyi index 523dde8e1..4660b4768 100644 --- a/third_party/2and3/requests/status_codes.pyi +++ b/third_party/2and3/requests/status_codes.pyi @@ -1,5 +1,3 @@ from typing import Any -from .structures import LookupDict - codes: Any diff --git a/third_party/2and3/simplejson/decoder.pyi b/third_party/2and3/simplejson/decoder.pyi index 59111ce66..a0631945c 100644 --- a/third_party/2and3/simplejson/decoder.pyi +++ b/third_party/2and3/simplejson/decoder.pyi @@ -1,4 +1,4 @@ -from typing import Any, Match +from typing import Match class JSONDecoder(object): def __init__(self, **kwargs): ... diff --git a/third_party/2and3/simplejson/encoder.pyi b/third_party/2and3/simplejson/encoder.pyi index 6fa1ff7f7..ab6f40f1b 100644 --- a/third_party/2and3/simplejson/encoder.pyi +++ b/third_party/2and3/simplejson/encoder.pyi @@ -1,4 +1,4 @@ -from typing import IO, Any +from typing import Any class JSONEncoder(object): def __init__(self, *args, **kwargs): ... diff --git a/third_party/2and3/werkzeug/contrib/fixers.pyi b/third_party/2and3/werkzeug/contrib/fixers.pyi index 9d47aed11..a1f984820 100644 --- a/third_party/2and3/werkzeug/contrib/fixers.pyi +++ b/third_party/2and3/werkzeug/contrib/fixers.pyi @@ -1,5 +1,5 @@ from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment -from typing import Any, Iterable, List, Mapping, Optional, Sequence, Set, Text +from typing import Any, Iterable, List, Mapping, Optional, Set, Text from ..middleware.proxy_fix import ProxyFix as ProxyFix diff --git a/third_party/2and3/werkzeug/contrib/testtools.pyi b/third_party/2and3/werkzeug/contrib/testtools.pyi index 10102fb73..da0f92d15 100644 --- a/third_party/2and3/werkzeug/contrib/testtools.pyi +++ b/third_party/2and3/werkzeug/contrib/testtools.pyi @@ -1,5 +1,3 @@ -from typing import Any - from werkzeug.wrappers import Response class ContentAccessors: diff --git a/third_party/2and3/werkzeug/datastructures.pyi b/third_party/2and3/werkzeug/datastructures.pyi index 858d465e6..c49c60d71 100644 --- a/third_party/2and3/werkzeug/datastructures.pyi +++ b/third_party/2and3/werkzeug/datastructures.pyi @@ -1,4 +1,3 @@ -import collections from _typeshed import SupportsWrite from typing import ( IO, diff --git a/third_party/2and3/werkzeug/middleware/dispatcher.pyi b/third_party/2and3/werkzeug/middleware/dispatcher.pyi index 875880c61..60ea30e0c 100644 --- a/third_party/2and3/werkzeug/middleware/dispatcher.pyi +++ b/third_party/2and3/werkzeug/middleware/dispatcher.pyi @@ -1,5 +1,5 @@ from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment -from typing import Any, Iterable, Mapping, Optional, Text +from typing import Iterable, Mapping, Optional, Text class DispatcherMiddleware(object): app: WSGIApplication diff --git a/third_party/2and3/werkzeug/wrappers.pyi b/third_party/2and3/werkzeug/wrappers.pyi index 5df032cf4..b9e362408 100644 --- a/third_party/2and3/werkzeug/wrappers.pyi +++ b/third_party/2and3/werkzeug/wrappers.pyi @@ -1,4 +1,3 @@ -import sys from _typeshed.wsgi import InputStream, WSGIEnvironment from datetime import datetime from typing import (