mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-01 23:43:46 +08:00
Still allow passing None to shutil.rmtree's onerror parameter on Python 3.12+ (#13478)
Resolves https://github.com/python/mypy/issues/18239
This commit is contained in:
1 parent
1d1086018b
commit
dee4ef3171
1 file changed
+2
-2
+2
-2
@@ -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,
|
||||
@@ -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: ...
|
||||
|
||||
Reference in new issue
Block a user