Skip to content

Commit

Permalink
Remove contradicting comment in docstring of `BaseModel.__get_pydanti…
Browse files Browse the repository at this point in the history
…c_core_schema__` (#9448)
  • Loading branch information
candleindark committed May 17, 2024
1 parent 2511312 commit 15b82a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pydantic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,7 @@ def __get_pydantic_core_schema__(cls, source: type[BaseModel], handler: GetCoreS
Args:
source: The class we are generating a schema for.
This will generally be the same as the `cls` argument if this is a classmethod.
handler: Call into Pydantic's internal JSON schema generation.
A callable that calls into Pydantic's internal CoreSchema generation logic.
handler: A callable that calls into Pydantic's internal CoreSchema generation logic.
Returns:
A `pydantic-core` `CoreSchema`.
Expand Down

0 comments on commit 15b82a9

Please sign in to comment.