Skip to content
Snippets Groups Projects

#186: Introduce pyupgrade pre-commit hook

Merged Moul requested to merge 186_pyupgrade into main
41 files
+ 177
229
Compare changes
  • Side-by-side
  • Inline
Files
41
+ 2
2
@@ -181,7 +181,7 @@ def blocks(client: Client, pubkey: str, start: int, end: int) -> dict:
:return:
"""
return client.get(
MODULE + "/history/%s/blocks/%s/%s" % (pubkey, start, end),
MODULE + f"/history/{pubkey}/blocks/{start}/{end}",
schema=HISTORY_SCHEMA,
)
@@ -197,5 +197,5 @@ def times(client: Client, pubkey: str, start: int, end: int) -> dict:
:return:
"""
return client.get(
MODULE + "/history/%s/times/%s/%s" % (pubkey, start, end), schema=HISTORY_SCHEMA
MODULE + f"/history/{pubkey}/times/{start}/{end}", schema=HISTORY_SCHEMA
)
Loading