mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Completing functionality for enum.auto (#1331)
Full context: https://github.com/python/mypy/pull/3441 Closes python/mypy#3434.
This commit is contained in:
committed by
Jelle Zijlstra
parent
f9872cafd8
commit
2053e5882f
@@ -32,7 +32,8 @@ def unique(enumeration: _S) -> _S: ...
|
||||
if sys.version_info >= (3, 6):
|
||||
_auto_null = ... # type: Any
|
||||
|
||||
class auto:
|
||||
# subclassing IntFlag so it picks up all implemented base functions, best modeling behavior of enum.auto()
|
||||
class auto(IntFlag):
|
||||
value = ... # type: Any
|
||||
|
||||
class Flag(Enum):
|
||||
|
||||
Reference in New Issue
Block a user