refactor: removed json typing

This commit is contained in:
2026-09-16 02:02:05 +03:00
parent b1e36e86a4
commit 4ce11f7e65
+2 -6
View File
@@ -1,6 +1,5 @@
import json as json_module
import os
from typing import cast
import requests
CACHE_DIR = ".cached"
@@ -37,9 +36,6 @@ def text(url: str) -> str:
return content
type JVal = dict[str, "JVal"] | list["JVal"] | str | int | float | bool | None
def json(url: str) -> JVal:
def json(url: str): # pyright: ignore[reportAny]
raw_text = text(url)
return cast(JVal, json_module.loads(raw_text))
return json_module.loads(raw_text) # pyright: ignore[reportAny]