Skip to content

Fix docstring typo#13239

Merged
Viicos merged 2 commits into
pydantic:mainfrom
kratos0718:docs/fix-duplicate-word-typos
Jun 1, 2026
Merged

Fix docstring typo#13239
Viicos merged 2 commits into
pydantic:mainfrom
kratos0718:docs/fix-duplicate-word-typos

Conversation

@kratos0718

Copy link
Copy Markdown
Contributor

Summary

Fixed two accidental duplicate-word typos in source-code docstrings — pure text fixes, no behavior change.

pydantic/v1/main.py:994create_model docstring

The documented field-definition format read:
=(, )

The duplicated default is now removed:
=(, )

pydantic/_internal/_model_construction.py:421 — parameter docstring

Parameter description read:

"A set of base class class variables"

class classclass. (Note: was class class variables, parameter is base_class_vars.)

Found by grepping for accidental duplicate words.

…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.
@codspeed-hq

codspeed-hq Bot commented May 29, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 215 untouched benchmarks


Comparing kratos0718:docs/fix-duplicate-word-typos (b8ac8e4) with main (4ec2d8e)

Open in CodSpeed

@github-actions

Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

Comment thread pydantic/v1/main.py Outdated
@Viicos Viicos changed the title docs: fix duplicate-word typos in create_model and _model_construction docstrings Fix docstring typo Jun 1, 2026
@Viicos Viicos enabled auto-merge (squash) June 1, 2026 07:11
@Viicos Viicos merged commit 1d1eba2 into pydantic:main Jun 1, 2026
78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants