Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing Wang committed Oct 20, 2023
1 parent a188c15 commit 2b388d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generate_class_from_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
def to_py_type(v: Dict[str, Any]) -> str:
if "type" in v:
t = TYPE_MAPPING.get(v["type"], v["type"])
assert isinstance(t, str)
return t
if "enum" in v:
return "str"
Expand Down

0 comments on commit 2b388d4

Please sign in to comment.