mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +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],
|
||||
path: str,
|
||||
exc: OSError,
|
||||
object: object = None, # Ignored.
|
||||
) -> None:
|
||||
if (
|
||||
func in (os.rmdir, os.remove, os.unlink) and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue