Merge pull request #10488 from tk0miya/10483_Optional

Close #10483: Fix type annotations for Sphinx.__init__()
This commit is contained in:
Takeshi KOMIYA 2022-06-07 00:24:46 +09:00 committed by GitHub
commit 792c32fc19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ class Sphinx:
def __init__(self, srcdir: str, confdir: Optional[str], outdir: str, doctreedir: str,
buildername: str, confoverrides: Dict = None,
status: IO = sys.stdout, warning: IO = sys.stderr,
status: Optional[IO] = sys.stdout, warning: Optional[IO] = sys.stderr,
freshenv: bool = False, warningiserror: bool = False, tags: List[str] = None,
verbosity: int = 0, parallel: int = 0, keep_going: bool = False) -> None:
self.phase = BuildPhase.INITIALIZATION