Skip to content

Fix Typo attr -> attrs #20400

Merged
hauntsaninja merged 1 commit into
python:masterfrom
George-Ogden:attrs-typo
Dec 11, 2025
Merged

Fix Typo attr -> attrs #20400
hauntsaninja merged 1 commit into
python:masterfrom
George-Ogden:attrs-typo

Conversation

@George-Ogden

Copy link
Copy Markdown
Contributor

In the example, attrs is used, even though attr is imported.
Picking either one isn't important, but the code gives a runtime error when the other one is used.

Are there doctests, including running Mypy on the docs?

@hauntsaninja hauntsaninja left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I don't think we doctest

@hauntsaninja hauntsaninja merged commit 12d53f6 into python:master Dec 11, 2025
2 checks passed
@wyattscarpenter

Copy link
Copy Markdown
Contributor

There are no doctests as far as I can tell. It would be cool to have even basic ones, to prevent problems like what this PR fixes.

Related issues (neither quite what you asked):

#7966

#19919

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.

4 participants