Fix docstring typo#13239
Merged
Merged
Conversation
…tion` docstrings Fixed two accidental duplicate words in source-code docstrings: - `pydantic/v1/main.py:994` — in `create_model` docstring, the documented field-definition format read `<name>=(<type>, <default default>)`, the duplicated `default` is now removed. - `pydantic/_internal/_model_construction.py:421` — parameter description read "A set of base class class variables", the duplicated `class` is now removed. Pure docstring fixes — no behavior change.
Contributor
Viicos
reviewed
Jun 1, 2026
create_model and _model_construction docstrings
Viicos
approved these changes
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixed two accidental duplicate-word typos in source-code docstrings — pure text fixes, no behavior change.
pydantic/v1/main.py:994—create_modeldocstringThe documented field-definition format read:
=(, )
The duplicated
defaultis now removed:=(, )
pydantic/_internal/_model_construction.py:421— parameter docstringParameter description read:
class class→class. (Note: wasclass class variables, parameter isbase_class_vars.)Found by grepping for accidental duplicate words.