improve typing

This commit is contained in:
ducklet 2023-02-04 17:30:54 +01:00
parent cb7c66a8d1
commit 60d38e9b49
4 changed files with 12 additions and 9 deletions

View file

@ -19,7 +19,7 @@ from typing import (
from .types import ULID
JSON = Union[int, float, str, None, list["JSON"], dict[str, "JSON"]]
JSON = int | float | str | None | list["JSON"] | dict[str, "JSON"]
JSONObject = dict[str, JSON]
T = TypeVar("T")