Skip to content

[docutils] Add missing stubs for readers dir #14242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

donBarbos
Copy link
Contributor

No description provided.

Copy link
Contributor

github-actions bot commented Jun 8, 2025

Diff from mypy_primer, showing the effect of this PR on open source code:

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/io.py:33: error: Unused "type: ignore" comment  [unused-ignore]
+ sphinx/io.py:33:24: error: Missing type parameters for generic type "Reader"  [type-arg]
+ sphinx/io.py:33:24: note: Error code "type-arg" not covered by "type: ignore" comment
+ sphinx/io.py:92: error: Unused "type: ignore" comment  [unused-ignore]
+ sphinx/io.py: note: In member "read" of class "SphinxStandaloneReader":
+ sphinx/io.py:97:16: error: Incompatible return value type (got "None", expected "document")  [return-value]
+ sphinx/io.py: note: In member "read_source" of class "SphinxStandaloneReader":
+ sphinx/io.py:101:19: error: Item "None" of "Input[Any] | None" has no attribute "read"  [union-attr]
+ sphinx/transforms/i18n.py: note: In function "publish_msgstr":
+ sphinx/transforms/i18n.py:123:20: error: Incompatible return value type (got "Node", expected "Element")  [return-value]

@donBarbos donBarbos marked this pull request as ready for review June 8, 2025 09:10
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.

1 participant