mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user