*: add pyright type checking

This commit is contained in:
Jens Langhammer
2020-05-07 00:32:03 +02:00
parent 80d90b91e8
commit 813dd2894f
6 changed files with 26 additions and 11 deletions

View File

@ -66,7 +66,9 @@ class EventAction(Enum):
@staticmethod
def as_choices():
"""Generate choices of actions used for database"""
return tuple((x, y.value) for x, y in EventAction.__members__.items())
return tuple(
(x, y.value) for x, y in getattr(EventAction, "__members__").items()
)
class Event(UUIDModel):