fix shutil.chown type annotations (#4294)

According to the official docs, "user can be a system user name or a uid;
the same applies to group".

Co-authored-by: Artem Simonov <artem.simonov@dejero.com>
This commit is contained in:
Artem Simonov
2020-06-30 03:39:38 -04:00
committed by GitHub
parent ad8fd9dba7
commit f0269cd438

View File

@@ -122,7 +122,7 @@ if sys.version_info >= (3,):
used: int
free: int
def disk_usage(path: StrPath) -> _ntuple_diskusage: ...
def chown(path: StrPath, user: Optional[str] = ..., group: Optional[str] = ...) -> None: ...
def chown(path: StrPath, user: Optional[Union[str, int]] = ..., group: Optional[Union[str, int]] = ...) -> None: ...
if sys.version_info >= (3, 8):
@overload