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):
|
class FailureResponseCode(IntEnum):
|
||||||
NOT_LIST: int
|
NOT_LIST = ...
|
||||||
ARG: int
|
ARG = ...
|
||||||
PASSWORD: int
|
PASSWORD = ...
|
||||||
PERMISSION: int
|
PERMISSION = ...
|
||||||
UNKNOWN: int
|
UNKNOWN = ...
|
||||||
NO_EXIST: int
|
NO_EXIST = ...
|
||||||
PLAYLIST_MAX: int
|
PLAYLIST_MAX = ...
|
||||||
SYSTEM: int
|
SYSTEM = ...
|
||||||
PLAYLIST_LOAD: int
|
PLAYLIST_LOAD = ...
|
||||||
UPDATE_ALREADY: int
|
UPDATE_ALREADY = ...
|
||||||
PLAYER_SYNC: int
|
PLAYER_SYNC = ...
|
||||||
EXIST: int
|
EXIST = ...
|
||||||
|
|
||||||
class MPDError(Exception): ...
|
class MPDError(Exception): ...
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue