Skip to content

Enable strict-optional for several more modules#11523

Merged
AA-Turner merged 33 commits intosphinx-doc:masterfrom
AA-Turner:mypy-strict-optional
Jul 27, 2023
Merged

Enable strict-optional for several more modules#11523
AA-Turner merged 33 commits intosphinx-doc:masterfrom
AA-Turner:mypy-strict-optional

Conversation

@AA-Turner
Copy link
Copy Markdown
Member

cc: @danieleades

This enables strict-optional mode for:

  • sphinx.builders.html
  • sphinx.builders.latex
  • sphinx.domains.python
  • sphinx.domains.std
  • sphinx.environment
  • sphinx.ext.apidoc
  • sphinx.ext.autodoc
  • sphinx.ext.autodoc.importer
  • sphinx.ext.autosummary
  • sphinx.ext.autosummary.generate
  • sphinx.ext.inheritance_diagram
  • sphinx.ext.intersphinx
  • sphinx.ext.imgmath
  • sphinx.ext.mathjax
  • sphinx.ext.napoleon.docstring
  • sphinx.registry
  • sphinx.writers.latex

A

@AA-Turner AA-Turner merged commit cb6d568 into sphinx-doc:master Jul 27, 2023
@AA-Turner AA-Turner deleted the mypy-strict-optional branch August 7, 2023 21:28
@AA-Turner AA-Turner added this to the 7.2.0 milestone Aug 11, 2023
zmc added a commit to zmc/sphinx that referenced this pull request Aug 17, 2023
If the assert statement added in sphinx-doc#11523 fails, the build fails and the
user only sees `assert matched is not None`; with this change, they will
get a proper warning message containing the name of the offending
module, and the build will succeed.

Signed-off-by: Zack Cerza <[email protected]>
AA-Turner added a commit that referenced this pull request Aug 20, 2023
If the assert statement added in GH-11523 fails,
the build fails and the user only sees
``assert matched is not None``.
With this change, the user gets a proper warning message
containing the name of the offending module,
and the build will succeed.

Signed-off-by: Zack Cerza <[email protected]>
Co-authored-by: Zack Cerza <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant