Skip to content

Commit ae6f49a

Browse files
authored
1 parent c045882 commit ae6f49a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/enum.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import types
44
from _typeshed import SupportsKeysAndGetItem, Unused
55
from builtins import property as _builtins_property
66
from collections.abc import Callable, Iterable, Iterator, Mapping
7-
from typing import Any, Final, Generic, Literal, TypeVar, overload
7+
from typing import Any, Final, Generic, Literal, SupportsIndex, TypeVar, overload
88
from typing_extensions import Self, TypeAlias, disjoint_base
99

1010
__all__ = ["EnumMeta", "Enum", "IntEnum", "Flag", "IntFlag", "auto", "unique"]
@@ -311,6 +311,7 @@ if sys.version_info >= (3, 11):
311311
def global_enum_repr(self: Enum) -> str: ...
312312
def global_flag_repr(self: Flag) -> str: ...
313313
def show_flag_values(value: int) -> list[int]: ...
314+
def bin(num: SupportsIndex, max_bits: int | None = None) -> str: ...
314315

315316
if sys.version_info >= (3, 12):
316317
# The body of the class is the same, but the base classes are different.

0 commit comments

Comments
 (0)