Skip to content

Conversation

@George-Ogden
Copy link
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?

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

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
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.

3 participants