mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-04 18:43:23 +08:00
Remove unused # type: ignore comments (#3325)
This commit is contained in:
committed by
Jelle Zijlstra
parent
bd7222c396
commit
07c8675ba5
@@ -62,7 +62,7 @@ class UserString(Sequence[UserString]):
|
||||
def upper(self: _UST) -> _UST: ...
|
||||
def zfill(self: _UST, width: int) -> _UST: ...
|
||||
|
||||
class MutableString(UserString, MutableSequence[MutableString]): # type: ignore
|
||||
class MutableString(UserString, MutableSequence[MutableString]):
|
||||
@overload
|
||||
def __getitem__(self: _MST, i: int) -> _MST: ...
|
||||
@overload
|
||||
|
||||
@@ -1160,20 +1160,15 @@ if sys.version_info >= (3,):
|
||||
def filter(__function: Callable[[_T], Any], __iterable: Iterable[_T]) -> Iterator[_T]: ...
|
||||
else:
|
||||
@overload
|
||||
def filter(__function: Callable[[AnyStr], Any], # type: ignore
|
||||
__iterable: AnyStr) -> AnyStr: ...
|
||||
def filter(__function: Callable[[AnyStr], Any], __iterable: AnyStr) -> AnyStr: ... # type: ignore
|
||||
@overload
|
||||
def filter(__function: None, # type: ignore
|
||||
__iterable: Tuple[Optional[_T], ...]) -> Tuple[_T, ...]: ...
|
||||
def filter(__function: None, __iterable: Tuple[Optional[_T], ...]) -> Tuple[_T, ...]: ... # type: ignore
|
||||
@overload
|
||||
def filter(__function: Callable[[_T], Any], # type: ignore
|
||||
__iterable: Tuple[_T, ...]) -> Tuple[_T, ...]: ...
|
||||
def filter(__function: Callable[[_T], Any], __iterable: Tuple[_T, ...]) -> Tuple[_T, ...]: ... # type: ignore
|
||||
@overload
|
||||
def filter(__function: None,
|
||||
__iterable: Iterable[Optional[_T]]) -> List[_T]: ...
|
||||
def filter(__function: None, __iterable: Iterable[Optional[_T]]) -> List[_T]: ...
|
||||
@overload
|
||||
def filter(__function: Callable[[_T], Any],
|
||||
__iterable: Iterable[_T]) -> List[_T]: ...
|
||||
def filter(__function: Callable[[_T], Any], __iterable: Iterable[_T]) -> List[_T]: ...
|
||||
def format(__o: object, __format_spec: str = ...) -> str: ... # TODO unicode
|
||||
def getattr(__o: Any, name: Text, __default: Any = ...) -> Any: ...
|
||||
def globals() -> Dict[str, Any]: ...
|
||||
@@ -1383,7 +1378,7 @@ if sys.version_info >= (3,):
|
||||
@overload
|
||||
def round(number: SupportsRound[_T]) -> int: ...
|
||||
@overload
|
||||
def round(number: SupportsRound[_T], ndigits: None) -> int: ... # type: ignore
|
||||
def round(number: SupportsRound[_T], ndigits: None) -> int: ...
|
||||
@overload
|
||||
def round(number: SupportsRound[_T], ndigits: int) -> _T: ...
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user