Remove unused import statements (#2282)

This commit is contained in:
Yusuke Miyazaki
2018-06-28 12:14:57 +09:00
committed by Jelle Zijlstra
parent f8041d08db
commit 86883d3df9
11 changed files with 9 additions and 12 deletions

View File

@@ -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: ...

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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: ...

View File

@@ -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')

View File

@@ -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]: ...

View File

@@ -1,5 +1,4 @@
from typing import Any, Callable, Type, TypeVar
import sys
# Stubs for abc.
_T = TypeVar('_T')

View File

@@ -2,8 +2,6 @@
# NOTE: These are incomplete!
import sys
import typing
from typing import NamedTuple, Tuple
class stat_result:

View File

@@ -1,4 +1,4 @@
from typing import Any, Dict, Union
from typing import Dict, Union
from urllib.response import addinfourl
# Stubs for urllib.error

View File

@@ -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')