Skip to content

Commit

Permalink
Update TypedDict reference in schemafunc.py
Browse files Browse the repository at this point in the history
The reference to TypedDict was previously called from a local scope within schemafunc.py. The commit corrects this by explicitly calling the TypedDict from the typing module.
  • Loading branch information
dmwyatt committed May 30, 2024
1 parent 78ca4ea commit 764cddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schemafunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def resolve_type(param_type: typing.Type) -> dict:
>>> resolve_type(typing.Dict[str, int])
{'type': 'object', 'additionalProperties': {'type': 'integer'}}
>>> class MyTypedDict(TypedDict):
>>> class MyTypedDict(typing.TypedDict):
... name: str
... age: int
...
Expand Down

0 comments on commit 764cddc

Please sign in to comment.