From 8a92246160424303f9d76c5d7525f2004a66e1a8 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 26 May 2017 13:42:39 -0700 Subject: [PATCH] Improve the definition of enum.auto so that it behaves more like IntFlag Fixes #3434 --- stdlib/3.4/enum.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/3.4/enum.pyi b/stdlib/3.4/enum.pyi index 7df2d52b882e..ae8b4435f6d5 100644 --- a/stdlib/3.4/enum.pyi +++ b/stdlib/3.4/enum.pyi @@ -32,9 +32,6 @@ def unique(enumeration: _S) -> _S: ... if sys.version_info >= (3, 6): _auto_null = ... # type: Any - class auto: - value = ... # type: Any - class Flag(Enum): def __contains__(self: _T, other: _T) -> bool: ... def __repr__(self) -> str: ... @@ -54,3 +51,6 @@ if sys.version_info >= (3, 6): __ror__ = __or__ __rand__ = __and__ __rxor__ = __xor__ + + class auto(IntFlag): + value = ... # type: Any