mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user