Fix mypy stub enum compatibility
without losing numeric semantics
This commit is contained in:
parent
b922d34db8
commit
eb5a9d5745
1 changed files with 14 additions and 14 deletions
|
|
@ -1,18 +1,18 @@
|
|||
from enum import Enum
|
||||
from enum import IntEnum
|
||||
|
||||
class FailureResponseCode(Enum):
|
||||
NOT_LIST: int
|
||||
ARG: int
|
||||
PASSWORD: int
|
||||
PERMISSION: int
|
||||
UNKNOWN: int
|
||||
NO_EXIST: int
|
||||
PLAYLIST_MAX: int
|
||||
SYSTEM: int
|
||||
PLAYLIST_LOAD: int
|
||||
UPDATE_ALREADY: int
|
||||
PLAYER_SYNC: int
|
||||
EXIST: int
|
||||
class FailureResponseCode(IntEnum):
|
||||
NOT_LIST = ...
|
||||
ARG = ...
|
||||
PASSWORD = ...
|
||||
PERMISSION = ...
|
||||
UNKNOWN = ...
|
||||
NO_EXIST = ...
|
||||
PLAYLIST_MAX = ...
|
||||
SYSTEM = ...
|
||||
PLAYLIST_LOAD = ...
|
||||
UPDATE_ALREADY = ...
|
||||
PLAYER_SYNC = ...
|
||||
EXIST = ...
|
||||
|
||||
class MPDError(Exception): ...
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue