Use overrides for IntFlag dunder-r methods (#6114)

This commit is contained in:
Jake Bailey
2021-10-04 18:00:36 -07:00
committed by GitHub
parent 4707e1d763
commit b9ea346c14

View File

@@ -75,9 +75,9 @@ class IntFlag(int, Flag):
def __or__(self: _T, other: int | _T) -> _T: ...
def __and__(self: _T, other: int | _T) -> _T: ...
def __xor__(self: _T, other: int | _T) -> _T: ...
__ror__ = __or__
__rand__ = __and__
__rxor__ = __xor__
def __ror__(self: _T, n: int | _T) -> _T: ...
def __rand__(self: _T, n: int | _T) -> _T: ...
def __rxor__(self: _T, n: int | _T) -> _T: ...
if sys.version_info >= (3, 11):
class StrEnum(str, Enum):