Fix pyupgrade precommit (#3155)

* Fix pyupgrade precommit

* address comments
This commit is contained in:
Pascal Vizeli 2021-09-27 11:05:21 +02:00 committed by GitHub
parent e960a70217
commit 7c9f6067c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v2.26.0
rev: v2.28.0
hooks:
- id: pyupgrade
args: [--py39-plus]

View File

@ -27,7 +27,7 @@ class JSONEncoder(json.JSONEncoder):
if isinstance(o, Path):
return o.as_posix()
return json.JSONEncoder.default(self, o)
return super().default(o)
def write_json_file(jsonfile: Path, data: Any) -> None: