mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Remove unused import statements (#2282)
This commit is contained in:
committed by
Jelle Zijlstra
parent
f8041d08db
commit
86883d3df9
@@ -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: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from typing import Any, Callable, Type, TypeVar
|
||||
import sys
|
||||
# Stubs for abc.
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
import sys
|
||||
import typing
|
||||
from typing import NamedTuple, Tuple
|
||||
|
||||
class stat_result:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, Union
|
||||
from typing import Dict, Union
|
||||
from urllib.response import addinfourl
|
||||
|
||||
# Stubs for urllib.error
|
||||
|
||||
2
third_party/3/enum.pyi
vendored
2
third_party/3/enum.pyi
vendored
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user