Skip to content

Linting failures with mypy from types-docutils 0.21.0.20240704 #12510

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

Closed
jfbu opened this issue Jul 4, 2024 · 3 comments · Fixed by #12511
Closed

Linting failures with mypy from types-docutils 0.21.0.20240704 #12510

jfbu opened this issue Jul 4, 2024 · 3 comments · Fixed by #12511
Labels
dependencies Pull requests that update a dependency file internals:typing type:tests

Comments

@jfbu
Copy link
Contributor

jfbu commented Jul 4, 2024

Describe the bug

sphinx/util/parsing.py: note: In function "nested_parse_to_nodes":
sphinx/util/parsing.py:18:12: error: Missing type parameters for generic type "RSTState"  [type-arg]
sphinx/util/parsing.py: note: In function "_fresh_title_style_context":
sphinx/util/parsing.py:70:39: error: Missing type parameters for generic type "RSTState"  [type-arg]
sphinx/util/nodes.py: note: In function "nested_parse_with_titles":
sphinx/util/nodes.py:328:37: error: Missing type parameters for generic type "RSTState"  [type-arg]
sphinx/ext/autodoc/directive.py: note: In member "run" of class "AutodocDirective":
sphinx/ext/autodoc/directive.py:115:30: error: "Reporter" has no attribute "get_source_and_line"  [attr-defined]
tests/test_util/test_util_docutils_sphinx_directive.py: note: In function "make_directive_and_state":
tests/test_util/test_util_docutils_sphinx_directive.py:18:103: error: Missing type parameters for generic type "RSTState"  [type-arg]
tests/test_util/test_util_docutils_sphinx_directive.py:23:13: error: Need type annotation for "state"  [var-annotated]
sphinx/ext/inheritance_diagram.py:381: error: Unused "type: ignore" comment  [unused-ignore]
sphinx/ext/inheritance_diagram.py: note: In member "run" of class "InheritanceDiagram":
sphinx/ext/inheritance_diagram.py:389:57: error: Argument 5 has incompatible type "RSTState[Any]"; expected "Inliner"  [arg-type]
Found 8 errors in 5 files (checked 296 source files)

How to Reproduce

mypy linting

See https://github.com/sphinx-doc/sphinx/actions/runs/9789252384/job/27028649762

Environment Information

Sphinx at 086a7913d

Sphinx extensions

No response

Additional context

https://pypi.org/project/types-docutils/0.21.0.20240704/ has been released.

@jayaddison
Copy link
Contributor

Are you preparing changes to resolve this @jfbu? I can pick it up if not.

@jfbu
Copy link
Contributor Author

jfbu commented Jul 4, 2024

@jayaddison

Are you preparing changes to resolve this @jfbu? I can pick it up if not.

No I was not preparing changes in part because I am finishing other things and soon will be packing... (a convoluted way to say I feel not competent enough ;-) )

@jayaddison
Copy link
Contributor

No problem - I'm not sure yet whether I am either, but let's find out :)

@jayaddison jayaddison added internals:typing dependencies Pull requests that update a dependency file labels Jul 4, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file internals:typing type:tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants