Skip to content

Commit ce53cce

Browse files
committed
Fix #8398: Fix type annotation for "confdir" of Sphinx.__init__()
None is allowed to the argument. So it should be "Optional[str]" instead of "str".
1 parent 249778e commit ce53cce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class Sphinx:
135135
:ivar outdir: Directory for storing build documents.
136136
"""
137137

138-
def __init__(self, srcdir: str, confdir: str, outdir: str, doctreedir: str,
138+
def __init__(self, srcdir: str, confdir: Optional[str], outdir: str, doctreedir: str,
139139
buildername: str, confoverrides: Dict = None,
140140
status: IO = sys.stdout, warning: IO = sys.stderr,
141141
freshenv: bool = False, warningiserror: bool = False, tags: List[str] = None,

0 commit comments

Comments
 (0)