mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
_handle_readonly must take a last arg of type object - even if ignored
This commit is contained in:
parent
4c804052e0
commit
839f7f2f04
1 changed files with 1 additions and 0 deletions
|
|
@ -206,6 +206,7 @@ def _handle_readonly(
|
||||||
func: Callable[[str], object],
|
func: Callable[[str], object],
|
||||||
path: str,
|
path: str,
|
||||||
exc: OSError,
|
exc: OSError,
|
||||||
|
object: object = None, # Ignored.
|
||||||
) -> None:
|
) -> None:
|
||||||
if (
|
if (
|
||||||
func in (os.rmdir, os.remove, os.unlink) and
|
func in (os.rmdir, os.remove, os.unlink) and
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue