From fe2f96ac99ae3261bca4a66b989149f13abaa212 Mon Sep 17 00:00:00 2001 From: danieleades <33452915+danieleades@users.noreply.github.com> Date: Fri, 9 Sep 2022 07:29:54 +0100 Subject: [PATCH] Shink the strict optional whitelist (#10800) Removes `sphinx.search` --- setup.cfg | 3 --- sphinx/testing/util.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/setup.cfg b/setup.cfg index 527c3af97..5cc94b55c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/sphinx/testing/util.py b/sphinx/testing/util.py index 11cf4b290..6f0b79810 100644 --- a/sphinx/testing/util.py +++ b/sphinx/testing/util.py @@ -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,