mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Revert "bpo-38659: [Enum] add _simple_enum decorator (GH-25285)" (GH-25476)
This reverts commit dbac8f40e8.
This commit is contained in:
parent
dbac8f40e8
commit
503cdc7c12
20 changed files with 34 additions and 871 deletions
|
|
@ -144,8 +144,7 @@ def _splitdict(tk, v, cut_minus=True, conv=None):
|
|||
return dict
|
||||
|
||||
|
||||
@enum._simple_enum(enum.StrEnum)
|
||||
class EventType:
|
||||
class EventType(enum.StrEnum):
|
||||
KeyPress = '2'
|
||||
Key = KeyPress
|
||||
KeyRelease = '3'
|
||||
|
|
@ -186,6 +185,8 @@ class EventType:
|
|||
Deactivate = '37'
|
||||
MouseWheel = '38'
|
||||
|
||||
__str__ = str.__str__
|
||||
|
||||
|
||||
class Event:
|
||||
"""Container for the properties of an event.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue