|
22 | 22 | from __future__ import annotations |
23 | 23 |
|
24 | 24 | import posixpath |
25 | | -import sys |
26 | | -from glob import _GlobberBase, _no_recurse_symlinks, _PathGlobber |
| 25 | +from glob import _no_recurse_symlinks, _PathGlobber |
27 | 26 | from pathlib import Path, PurePath, UnsupportedOperation |
28 | 27 | from pathlib._os import DirEntryInfo, _PosixPathInfo |
29 | | -from pathlib.types import PathInfo, _ReadablePath |
| 28 | +from pathlib.types import _ReadablePath |
30 | 29 | from stat import S_ISDIR, S_ISLNK, S_ISREG |
31 | 30 | from typing import IO, TYPE_CHECKING, ClassVar |
32 | 31 |
|
@@ -381,13 +380,13 @@ def resolve(self, strict: bool = False) -> Self: |
381 | 380 | raise |
382 | 381 | return p |
383 | 382 |
|
384 | | - def owner(self, *, follow_symlinks=True) -> str: |
| 383 | + def owner(self, *, follow_symlinks: bool = True) -> str: |
385 | 384 | """ |
386 | 385 | Return the login name of the file owner. |
387 | 386 | """ |
388 | 387 | raise UnsupportedOperation(self._unsupported_msg("owner()")) |
389 | 388 |
|
390 | | - def group(self, *, follow_symlinks=True) -> str: |
| 389 | + def group(self, *, follow_symlinks: bool = True) -> str: |
391 | 390 | """ |
392 | 391 | Return the group name of the file gid. |
393 | 392 | """ |
@@ -479,7 +478,7 @@ def copy_into(self, target_dir: str, **kwargs) -> Self: |
479 | 478 | """ |
480 | 479 | raise UnsupportedOperation(self._unsupported_msg("copy_into()")) |
481 | 480 |
|
482 | | - def _copy_from(self, source: Path, follow_symlinks: bool = True, preserve_metadata: bool = False): |
| 481 | + def _copy_from(self, source: Path, follow_symlinks: bool = True, preserve_metadata: bool = False) -> None: |
483 | 482 | """ |
484 | 483 | Recursively copy the given path to this path. |
485 | 484 | """ |
|
0 commit comments