mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-01 17:13:24 +08:00
Remove unused # type: ignore comments (#3325)
This commit is contained in:
committed by
Jelle Zijlstra
parent
bd7222c396
commit
07c8675ba5
@@ -115,7 +115,7 @@ class RawConfigParser(_parser):
|
||||
@overload # type: ignore
|
||||
def get(self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> str: ...
|
||||
|
||||
@overload # type: ignore
|
||||
@overload
|
||||
def get(self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T) -> Union[str, _T]: ...
|
||||
|
||||
@overload
|
||||
|
||||
@@ -66,9 +66,7 @@ if sys.version_info >= (3, 6):
|
||||
def __xor__(self: _T, other: _T) -> _T: ...
|
||||
def __invert__(self: _T) -> _T: ...
|
||||
|
||||
# The `type: ignore` comment is needed because mypy considers the type
|
||||
# signatures of several methods defined in int and Flag to be incompatible.
|
||||
class IntFlag(int, Flag): # type: ignore
|
||||
class IntFlag(int, Flag):
|
||||
def __or__(self: _T, other: Union[int, _T]) -> _T: ...
|
||||
def __and__(self: _T, other: Union[int, _T]) -> _T: ...
|
||||
def __xor__(self: _T, other: Union[int, _T]) -> _T: ...
|
||||
|
||||
@@ -128,19 +128,19 @@ class DefaultContext(object):
|
||||
|
||||
if sys.platform != 'win32':
|
||||
# TODO: type should be BaseProcess once a stub in multiprocessing.process exists
|
||||
class ForkProcess(Any): # type: ignore
|
||||
class ForkProcess(Any):
|
||||
_start_method: str
|
||||
@staticmethod
|
||||
def _Popen(process_obj: Any) -> Any: ...
|
||||
|
||||
# TODO: type should be BaseProcess once a stub in multiprocessing.process exists
|
||||
class SpawnProcess(Any): # type: ignore
|
||||
class SpawnProcess(Any):
|
||||
_start_method: str
|
||||
@staticmethod
|
||||
def _Popen(process_obj: Any) -> SpawnProcess: ...
|
||||
|
||||
# TODO: type should be BaseProcess once a stub in multiprocessing.process exists
|
||||
class ForkServerProcess(Any): # type: ignore
|
||||
class ForkServerProcess(Any):
|
||||
_start_method: str
|
||||
@staticmethod
|
||||
def _Popen(process_obj: Any) -> Any: ...
|
||||
@@ -158,7 +158,7 @@ if sys.platform != 'win32':
|
||||
Process: Type[ForkServerProcess]
|
||||
else:
|
||||
# TODO: type should be BaseProcess once a stub in multiprocessing.process exists
|
||||
class SpawnProcess(Any): # type: ignore
|
||||
class SpawnProcess(Any):
|
||||
_start_method: str
|
||||
@staticmethod
|
||||
# TODO: type should be BaseProcess once a stub in multiprocessing.process exists
|
||||
|
||||
Reference in New Issue
Block a user