Skip to content

Commit

Permalink
Still allow passing None to shutil.rmtree's onerror parameter o…
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Feb 9, 2025
1 parent 1d10860 commit dee4ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/shutil.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class _RmtreeType(Protocol):
self,
path: StrOrBytesPath,
ignore_errors: bool,
onerror: _OnErrorCallback,
onerror: _OnErrorCallback | None,
*,
onexc: None = None,
dir_fd: int | None = None,
Expand All @@ -95,7 +95,7 @@ class _RmtreeType(Protocol):
path: StrOrBytesPath,
ignore_errors: bool = False,
*,
onerror: _OnErrorCallback,
onerror: _OnErrorCallback | None,
onexc: None = None,
dir_fd: int | None = None,
) -> None: ...
Expand Down

0 comments on commit dee4ef3

Please sign in to comment.