Fix shutil.chown stub (#6833)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Joseph Young
2022-01-05 21:55:36 +00:00
committed by GitHub
parent a58a5bbed6
commit b99e024faf

View File

@@ -61,7 +61,14 @@ class _ntuple_diskusage(NamedTuple):
free: int
def disk_usage(path: int | StrOrBytesPath) -> _ntuple_diskusage: ...
def chown(path: StrPath, user: str | int | None = ..., group: str | int | None = ...) -> None: ...
@overload
def chown(path: StrOrBytesPath, user: str | int, group: None = ...) -> None: ...
@overload
def chown(path: StrOrBytesPath, user: None = ..., *, group: str | int) -> None: ...
@overload
def chown(path: StrOrBytesPath, user: None, group: str | int) -> None: ...
@overload
def chown(path: StrOrBytesPath, user: str | int, group: str | int) -> None: ...
if sys.version_info >= (3, 8):
@overload