Skip to content
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

improve type annotations in 'docutils.parsers.rst.states' #11545

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

danieleades
Copy link
Contributor

No description provided.

@danieleades danieleades marked this pull request as draft March 8, 2024 16:27

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@danieleades
Copy link
Contributor Author

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

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/domains/std/__init__.py:388: error: Unused "type: ignore" comment  [unused-ignore]
+ sphinx/directives/__init__.py: note: In member "run" of class "DefaultRole":
+ sphinx/directives/__init__.py:331:26: error: List item 0 has incompatible type "system_message"; expected "SystemMessage"  [list-item]

I have no idea what this means

  • sphinx/ext/autodoc/directive.py:118: error: Unused "type: ignore" comment [unused-ignore]
  • sphinx/ext/inheritance_diagram.py: note: In member "run" of class "InheritanceDiagram":
  • sphinx/ext/inheritance_diagram.py:382:21: error: Item "None" of "Optional[document]" has no attribute "reporter" [union-attr]
  • sphinx/ext/inheritance_diagram.py: note: At top level:

bokeh (https://github.com/bokeh/bokeh)

  • src/bokeh/sphinxext/bokeh_palette_group.py:53: note: ... from here:
  • src/bokeh/sphinxext/bokeh_palette_group.py:53: note: ... from here:

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Jul 7, 2024

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

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/directives/__init__.py: note: In member "run" of class "DefaultRole":
+ sphinx/directives/__init__.py:329:26: error: List item 0 has incompatible type "system_message"; expected "SystemMessage"  [list-item]

@danieleades danieleades marked this pull request as ready for review July 7, 2024 16:07
@srittau srittau merged commit 694c982 into python:main Jul 9, 2024
48 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.

None yet

2 participants