Skip to content

Commit 2053e58

Browse files
mistermochaJelleZijlstra
authored andcommitted
Completing functionality for enum.auto (#1331)
Full context: python/mypy#3441 Closes python/mypy#3434.
1 parent f9872ca commit 2053e58

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

stdlib/3.4/enum.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def unique(enumeration: _S) -> _S: ...
3232
if sys.version_info >= (3, 6):
3333
_auto_null = ... # type: Any
3434

35-
class auto:
35+
# subclassing IntFlag so it picks up all implemented base functions, best modeling behavior of enum.auto()
36+
class auto(IntFlag):
3637
value = ... # type: Any
3738

3839
class Flag(Enum):

0 commit comments

Comments
 (0)