mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-19 09:32:49 +08:00
Use StrEnum as base class, when available (#11100)
This commit is contained in:
@@ -172,3 +172,7 @@ pkgutil.ImpImporter\..*
|
||||
pkgutil.ImpLoader\..*
|
||||
|
||||
types.CodeType.replace # stubtest thinks default values are None but None doesn't work at runtime
|
||||
|
||||
# These enums derive from (str, Enum)
|
||||
pstats.SortKey.__new__
|
||||
tkinter.EventType.__new__
|
||||
|
||||
@@ -181,3 +181,7 @@ tkinter.test
|
||||
tkinter\.test\..+
|
||||
unittest.test
|
||||
unittest\.test\..+
|
||||
|
||||
# These enums derive from (str, Enum)
|
||||
pstats.SortKey.__new__
|
||||
tkinter.EventType.__new__
|
||||
|
||||
@@ -163,3 +163,7 @@ pkgutil.ImpImporter\..*
|
||||
pkgutil.ImpLoader\..*
|
||||
|
||||
types.CodeType.replace # stubtest thinks default values are None but None doesn't work at runtime
|
||||
|
||||
# These enums derive from (str, Enum)
|
||||
pstats.SortKey.__new__
|
||||
tkinter.EventType.__new__
|
||||
|
||||
@@ -433,10 +433,6 @@ inspect.Signature.__init__
|
||||
inspect.Parameter.empty # set as private marker _empty
|
||||
inspect.Signature.empty # set as private marker _empty
|
||||
|
||||
# These enums derive from (int, IntEnum) or (str, Enum)
|
||||
pstats.SortKey.__new__
|
||||
tkinter.EventType.__new__
|
||||
|
||||
# These multiprocessing proxy methods have *args, **kwargs signatures at runtime,
|
||||
# But have more precise (accurate) signatures in the stub
|
||||
multiprocessing.managers.BaseListProxy.__imul__
|
||||
|
||||
Reference in New Issue
Block a user