mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 07:55:56 +03:00
Updated typeshed stubs to the latest version. This addresses #8079.
This commit is contained in:
parent
de8e9939d2
commit
e2adef6b88
@ -1 +1 @@
|
||||
6ddf4647a7855061c3972f19b39b6ae269f3adb7
|
||||
b3fc7e2cece78d1e81df2af0b718c1af0fd05871
|
||||
|
@ -267,9 +267,9 @@ if sys.version_info >= (3, 11):
|
||||
def _generate_next_value_(name: str, start: int, count: int, last_values: list[str]) -> str: ...
|
||||
|
||||
class EnumCheck(StrEnum):
|
||||
CONTINUOUS: str
|
||||
NAMED_FLAGS: str
|
||||
UNIQUE: str
|
||||
CONTINUOUS = "no skipped integer values"
|
||||
NAMED_FLAGS = "multi-flag aliases may not contain unnamed flags"
|
||||
UNIQUE = "one name per value"
|
||||
|
||||
CONTINUOUS = EnumCheck.CONTINUOUS
|
||||
NAMED_FLAGS = EnumCheck.NAMED_FLAGS
|
||||
@ -280,10 +280,10 @@ if sys.version_info >= (3, 11):
|
||||
def __call__(self, enumeration: _EnumerationT) -> _EnumerationT: ...
|
||||
|
||||
class FlagBoundary(StrEnum):
|
||||
STRICT: str
|
||||
CONFORM: str
|
||||
EJECT: str
|
||||
KEEP: str
|
||||
STRICT = "strict"
|
||||
CONFORM = "conform"
|
||||
EJECT = "eject"
|
||||
KEEP = "keep"
|
||||
|
||||
STRICT = FlagBoundary.STRICT
|
||||
CONFORM = FlagBoundary.CONFORM
|
||||
|
@ -572,7 +572,14 @@ fatal = critical
|
||||
|
||||
def disable(level: int = 50) -> None: ...
|
||||
def addLevelName(level: int, levelName: str) -> None: ...
|
||||
def getLevelName(level: _Level) -> Any: ...
|
||||
@overload
|
||||
def getLevelName(level: int) -> str: ...
|
||||
|
||||
# The str -> int case is considered a mistake, but retained for backward
|
||||
# compatibility. See
|
||||
# https://docs.python.org/3/library/logging.html#logging.getLevelName.
|
||||
@overload
|
||||
def getLevelName(level: str) -> Any: ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
def getLevelNamesMapping() -> dict[str, int]: ...
|
||||
|
@ -1,4 +1,4 @@
|
||||
version = "2.13.*"
|
||||
version = "2.14.*"
|
||||
upstream_repository = "https://github.com/aws/aws-xray-sdk-python"
|
||||
partial_stub = true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user