Shink the strict optional whitelist (#10800)

Removes `sphinx.search`
This commit is contained in:
danieleades 2022-09-09 07:29:54 +01:00 committed by GitHub
parent f35d2a6cc7
commit fe2f96ac99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -74,9 +74,6 @@ strict_optional = False
[mypy-sphinx.registry]
strict_optional = False
[mypy-sphinx.search]
strict_optional = False
[mypy-sphinx.setup_command]
strict_optional = False

View File

@ -91,8 +91,8 @@ class SphinxTestApp(application.Sphinx):
A subclass of :class:`Sphinx` that runs on the test root, with some
better default values for the initialization parameters.
"""
_status: StringIO = None
_warning: StringIO = None
_status: StringIO
_warning: StringIO
def __init__(
self,