_handle_readonly must take a last arg of type object - even if ignored

This commit is contained in:
helly25 2024-04-25 09:45:20 +00:00
parent 4c804052e0
commit 839f7f2f04
No known key found for this signature in database
GPG key ID: 95B24A6EAE247816

View file

@ -206,6 +206,7 @@ def _handle_readonly(
func: Callable[[str], object],
path: str,
exc: OSError,
object: object = None, # Ignored.
) -> None:
if (
func in (os.rmdir, os.remove, os.unlink) and