mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Fix shutil.chown stub (#6833)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user