diff --git a/stdlib/2and3/_bisect.pyi b/stdlib/2and3/_bisect.pyi index c5a5148ee..62335472f 100644 --- a/stdlib/2and3/_bisect.pyi +++ b/stdlib/2and3/_bisect.pyi @@ -1,6 +1,6 @@ """Stub file for the '_bisect' module.""" -from typing import Any, Sequence, TypeVar +from typing import Sequence, TypeVar _T = TypeVar('_T') def bisect(a: Sequence[_T], x: _T, lo: int = ..., hi: int = ...) -> int: ... diff --git a/stdlib/2and3/math.pyi b/stdlib/2and3/math.pyi index aa67468c0..6703fc5b2 100644 --- a/stdlib/2and3/math.pyi +++ b/stdlib/2and3/math.pyi @@ -1,7 +1,7 @@ # Stubs for math # See: http://docs.python.org/2/library/math.html -from typing import Tuple, Iterable, Optional, SupportsFloat, SupportsInt +from typing import Tuple, Iterable, SupportsFloat, SupportsInt import sys diff --git a/stdlib/2and3/numbers.pyi b/stdlib/2and3/numbers.pyi index 38943a8c1..b5fc580be 100644 --- a/stdlib/2and3/numbers.pyi +++ b/stdlib/2and3/numbers.pyi @@ -5,7 +5,7 @@ # Note: these stubs are incomplete. The more complex type # signatures are currently omitted. -from typing import Any, Optional, TypeVar, SupportsFloat +from typing import Optional, SupportsFloat from abc import ABCMeta, abstractmethod import sys diff --git a/stdlib/3.3/lzma.pyi b/stdlib/3.3/lzma.pyi index e0a698341..cd0a088b4 100644 --- a/stdlib/3.3/lzma.pyi +++ b/stdlib/3.3/lzma.pyi @@ -1,6 +1,6 @@ import io import sys -from typing import Any, BinaryIO, IO, List, Mapping, Optional, Sequence, Union +from typing import Any, IO, Mapping, Optional, Sequence, Union if sys.version_info >= (3, 6): from os import PathLike diff --git a/stdlib/3.4/_tracemalloc.pyi b/stdlib/3.4/_tracemalloc.pyi index b1db5ab16..21d00332a 100644 --- a/stdlib/3.4/_tracemalloc.pyi +++ b/stdlib/3.4/_tracemalloc.pyi @@ -3,7 +3,7 @@ # for a more precise manual annotation of this module. # Feel free to edit the source below, but remove this header when you do. -from typing import Any, List, Tuple, Dict, Generic +from typing import Any def _get_object_traceback(*args, **kwargs) -> Any: ... diff --git a/stdlib/3.4/enum.pyi b/stdlib/3.4/enum.pyi index 09b3d8aa6..6ca467b27 100644 --- a/stdlib/3.4/enum.pyi +++ b/stdlib/3.4/enum.pyi @@ -1,6 +1,6 @@ # NB: third_party/3/enum.pyi and stdlib/3.4/enum.pyi must remain consistent! import sys -from typing import List, Any, TypeVar, Union, Iterator, TypeVar, Generic, Type, Sized, Mapping +from typing import Any, Iterator, List, Mapping, Type, TypeVar, Union from abc import ABCMeta _T = TypeVar('_T') diff --git a/stdlib/3.4/tracemalloc.pyi b/stdlib/3.4/tracemalloc.pyi index f1b69cded..4556f04e8 100644 --- a/stdlib/3.4/tracemalloc.pyi +++ b/stdlib/3.4/tracemalloc.pyi @@ -1,7 +1,7 @@ # Stubs for tracemalloc (Python 3.4+) import sys -from typing import Any, List, Optional, Sequence, Tuple, Union, overload +from typing import List, Optional, Sequence, Tuple, Union, overload def clear_traces() -> None: ... def get_object_traceback(obj: object) -> Optional[Traceback]: ... diff --git a/stdlib/3/abc.pyi b/stdlib/3/abc.pyi index 480abc8c0..c86660b52 100644 --- a/stdlib/3/abc.pyi +++ b/stdlib/3/abc.pyi @@ -1,5 +1,4 @@ from typing import Any, Callable, Type, TypeVar -import sys # Stubs for abc. _T = TypeVar('_T') diff --git a/stdlib/3/posix.pyi b/stdlib/3/posix.pyi index 51fa9ea67..19e29a8cf 100644 --- a/stdlib/3/posix.pyi +++ b/stdlib/3/posix.pyi @@ -2,8 +2,6 @@ # NOTE: These are incomplete! -import sys -import typing from typing import NamedTuple, Tuple class stat_result: diff --git a/stdlib/3/urllib/error.pyi b/stdlib/3/urllib/error.pyi index fe4dbb1b6..a29347c19 100644 --- a/stdlib/3/urllib/error.pyi +++ b/stdlib/3/urllib/error.pyi @@ -1,4 +1,4 @@ -from typing import Any, Dict, Union +from typing import Dict, Union from urllib.response import addinfourl # Stubs for urllib.error diff --git a/third_party/3/enum.pyi b/third_party/3/enum.pyi index 09b3d8aa6..6ca467b27 100644 --- a/third_party/3/enum.pyi +++ b/third_party/3/enum.pyi @@ -1,6 +1,6 @@ # NB: third_party/3/enum.pyi and stdlib/3.4/enum.pyi must remain consistent! import sys -from typing import List, Any, TypeVar, Union, Iterator, TypeVar, Generic, Type, Sized, Mapping +from typing import Any, Iterator, List, Mapping, Type, TypeVar, Union from abc import ABCMeta _T = TypeVar('_T')