Skip to content
Snippets Groups Projects

Drop Python 3.8 support (#464)

Merged Moul requested to merge 464_drop_python_3.8 into main
14 files
+ 84
94
Compare changes
  • Side-by-side
  • Inline
Files
14
@@ -16,7 +16,6 @@
from collections import OrderedDict
from operator import itemgetter
from os import system
from typing import Dict, Tuple
import jsonschema
import rich_click as click
@@ -46,7 +45,7 @@ def difficulties() -> None:
print(f"{e.__class__.__name__!s}: {e!s}")
def display_diffi(current: WSConnection, diffi: Dict) -> None:
def display_diffi(current: WSConnection, diffi: dict) -> None:
levels = [OrderedDict((i, d[i]) for i in ("uid", "level")) for d in diffi["levels"]]
diffi["levels"] = levels
issuers = 0
@@ -72,7 +71,7 @@ Common Proof-of-Work difficulty level: {current["powMin"]}, hash starting with `
print(content)
def match_pattern(_pow: int, match: str = "", p: int = 1) -> Tuple[str, int]:
def match_pattern(_pow: int, match: str = "", p: int = 1) -> tuple[str, int]:
while _pow > 0:
if _pow >= 16:
match += "0"
Loading