Updated typeshed stubs to the latest version (to pick up recent fix in shutil.pyi).

This commit is contained in:
Eric Traut 2024-06-10 13:40:05 -07:00
parent 81d43e4c41
commit ec196107e2
5 changed files with 24 additions and 4 deletions

View File

@ -1 +1 @@
b3fc7e2cece78d1e81df2af0b718c1af0fd05871
58f2a795bac5924367d21961af53a32af7bb5727

View File

@ -365,3 +365,6 @@ def walk(node: AST) -> Iterator[AST]: ...
if sys.version_info >= (3, 9):
def main() -> None: ...
if sys.version_info >= (3, 14):
def compare(left: AST, right: AST, /, *, compare_attributes: bool = False) -> bool: ...

View File

@ -78,13 +78,25 @@ class _RmtreeType(Protocol):
avoids_symlink_attacks: bool
if sys.version_info >= (3, 12):
@overload
@deprecated("The `onerror` parameter is deprecated and will be removed in Python 3.14. Use `onexc` instead.")
@deprecated("The `onerror` parameter is deprecated. Use `onexc` instead.")
def __call__(
self,
path: StrOrBytesPath,
ignore_errors: bool,
onerror: _OnErrorCallback,
*,
onexc: None = None,
dir_fd: int | None = None,
) -> None: ...
@overload
@deprecated("The `onerror` parameter is deprecated. Use `onexc` instead.")
def __call__(
self,
path: StrOrBytesPath,
ignore_errors: bool = False,
onerror: _OnErrorCallback | None = None,
*,
onerror: _OnErrorCallback,
onexc: None = None,
dir_fd: int | None = None,
) -> None: ...
@overload

View File

@ -81,7 +81,7 @@ class FunctionType:
__name__: str
__qualname__: str
__annotations__: dict[str, Any]
__kwdefaults__: dict[str, Any]
__kwdefaults__: dict[str, Any] | None
if sys.version_info >= (3, 10):
@property
def __builtins__(self) -> dict[str, Any]: ...
@ -591,6 +591,9 @@ if sys.version_info >= (3, 9):
def __unpacked__(self) -> bool: ...
@property
def __typing_unpacked_tuple_args__(self) -> tuple[Any, ...] | None: ...
if sys.version_info >= (3, 10):
def __or__(self, value: Any, /) -> UnionType: ...
def __ror__(self, value: Any, /) -> UnionType: ...
# GenericAlias delegates attr access to `__origin__`
def __getattr__(self, name: str) -> Any: ...

View File

@ -6,3 +6,5 @@ partial_stub = true
[tool.stubtest]
ignore_missing_stub = true
extras = ["format"]
# see https://github.com/python/typeshed/issues/12107 for the reason for the pin
stubtest_requirements = ["webcolors<24.6.0"]