mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
mypy: Remove type: ignores not needed in Python 3.
This commit is contained in:
@@ -10,7 +10,7 @@ class AbstractEnum(Enum):
|
||||
def __new__(cls):
|
||||
# type: (Type[AbstractEnum]) -> AbstractEnum
|
||||
obj = object.__new__(cls)
|
||||
obj._value_ = len(cls.__members__) + 1 # type: ignore # typeshed enum missing Enum.__members__
|
||||
obj._value_ = len(cls.__members__) + 1
|
||||
return obj
|
||||
|
||||
# Override all the `Enum` methods that use `_value_`.
|
||||
@@ -144,7 +144,7 @@ class JsonableError(Exception):
|
||||
|
||||
def __str__(self):
|
||||
# type: () -> str
|
||||
return self.msg # type: ignore # remove once py3-only
|
||||
return self.msg
|
||||
|
||||
class RateLimited(PermissionDenied):
|
||||
def __init__(self, msg=""):
|
||||
|
||||
Reference in New Issue
Block a user