mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-09 16:40:30 +08:00
Use StrEnum as base class, when available (#11100)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import _tkinter
|
||||
import sys
|
||||
from _typeshed import Incomplete, StrOrBytesPath
|
||||
from _typeshed import Incomplete, StrEnum, StrOrBytesPath
|
||||
from collections.abc import Callable, Mapping, Sequence
|
||||
from enum import Enum
|
||||
from tkinter.constants import *
|
||||
from tkinter.font import _FontDescription
|
||||
from types import TracebackType
|
||||
@@ -195,7 +194,7 @@ if sys.version_info >= (3, 11):
|
||||
releaselevel: str
|
||||
serial: int
|
||||
|
||||
class EventType(str, Enum):
|
||||
class EventType(StrEnum):
|
||||
Activate: str
|
||||
ButtonPress: str
|
||||
Button = ButtonPress
|
||||
|
||||
Reference in New Issue
Block a user