Skip to content

Commit

Permalink
Json typing.
Browse files Browse the repository at this point in the history
  • Loading branch information
JPFrancoia committed Feb 12, 2024
1 parent 86fcf2d commit 931edb6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions _posts/2023-03-20-clean-architecture-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ import requests

from .entities import Spell

# json data can't really be typed, but use this alias if you want to convey
# that some data is json
JSON = Any
# Use mypy recursive typing
JSON = Union[Dict[str, "JSON"], List["JSON"], str, int, float, bool, None]

BASE_URL = "https://wizard-world-api.herokuapp.com"

Expand Down

0 comments on commit 931edb6

Please sign in to comment.