Include typing for Enum __order__ attribute (#3541)

Based on the behavior here: 0b41a922f9/Lib/enum.py (L91)
the `__order__` attribute should be treated the same as `_order_`
This commit is contained in:
lazytype
2020-02-22 00:40:33 -05:00
committed by GitHub
parent 7d8e2c8546
commit cfe69831e9
2 changed files with 2 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ class Enum(metaclass=EnumMeta):
_ignore_: Union[str, List[str]]
if sys.version_info >= (3, 6):
_order_: str
__order__: str
@classmethod
def _missing_(cls, value: object) -> Any: ...
@staticmethod