mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-26 18:46:29 +00:00
Fix pyupgrade precommit (#3155)
* Fix pyupgrade precommit * address comments
This commit is contained in:
parent
e960a70217
commit
7c9f6067c0
@ -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]
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user