mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 11:06:32 +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:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v2.26.0
|
rev: v2.28.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py39-plus]
|
args: [--py39-plus]
|
||||||
|
@ -27,7 +27,7 @@ class JSONEncoder(json.JSONEncoder):
|
|||||||
if isinstance(o, Path):
|
if isinstance(o, Path):
|
||||||
return o.as_posix()
|
return o.as_posix()
|
||||||
|
|
||||||
return json.JSONEncoder.default(self, o)
|
return super().default(o)
|
||||||
|
|
||||||
|
|
||||||
def write_json_file(jsonfile: Path, data: Any) -> None:
|
def write_json_file(jsonfile: Path, data: Any) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user