Skip to content

Commit

Permalink
fix docstring again
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle committed Aug 19, 2024
1 parent 1f21c56 commit 45aad17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/pydantic_core/core_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2859,8 +2859,7 @@ class MyTypedDict(TypedDict):
a: str
wrapper_schema = core_schema.typed_dict_schema(
{'a': core_schema.typed_dict_field(core_schema.str_schema())},
cls=MyTypedDict
{'a': core_schema.typed_dict_field(core_schema.str_schema())}, cls=MyTypedDict
)
v = SchemaValidator(wrapper_schema)
assert v.validate_python({'a': 'hello'}) == {'a': 'hello'}
Expand Down

0 comments on commit 45aad17

Please sign in to comment.