From f0269cd4389f780f417750010db31bf93a6a7f5f Mon Sep 17 00:00:00 2001 From: Artem Simonov Date: Tue, 30 Jun 2020 03:39:38 -0400 Subject: [PATCH] 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 --- stdlib/2and3/shutil.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/shutil.pyi b/stdlib/2and3/shutil.pyi index bfe4b2b06..d96ef8160 100644 --- a/stdlib/2and3/shutil.pyi +++ b/stdlib/2and3/shutil.pyi @@ -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