Remove unused # type: ignore comments (#3325)

This commit is contained in:
Sebastian Rittau
2019-10-09 19:27:18 +02:00
committed by Jelle Zijlstra
parent bd7222c396
commit 07c8675ba5
7 changed files with 20 additions and 34 deletions

View File

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