We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
enum.bin
1 parent c045882 commit ae6f49aCopy full SHA for ae6f49a
stdlib/enum.pyi
@@ -4,7 +4,7 @@ import types
4
from _typeshed import SupportsKeysAndGetItem, Unused
5
from builtins import property as _builtins_property
6
from collections.abc import Callable, Iterable, Iterator, Mapping
7
-from typing import Any, Final, Generic, Literal, TypeVar, overload
+from typing import Any, Final, Generic, Literal, SupportsIndex, TypeVar, overload
8
from typing_extensions import Self, TypeAlias, disjoint_base
9
10
__all__ = ["EnumMeta", "Enum", "IntEnum", "Flag", "IntFlag", "auto", "unique"]
@@ -311,6 +311,7 @@ if sys.version_info >= (3, 11):
311
def global_enum_repr(self: Enum) -> str: ...
312
def global_flag_repr(self: Flag) -> str: ...
313
def show_flag_values(value: int) -> list[int]: ...
314
+ def bin(num: SupportsIndex, max_bits: int | None = None) -> str: ...
315
316
if sys.version_info >= (3, 12):
317
# The body of the class is the same, but the base classes are different.
0 commit comments