Skip to content

Commit

Permalink
Fix sphinx-doc#8398: Fix type annotation for "confdir" of Sphinx.__in…
Browse files Browse the repository at this point in the history
…it__()

None is allowed to the argument. So it should be "Optional[str]" instead
of "str".
  • Loading branch information
tk0miya committed Nov 12, 2020
1 parent 249778e commit ce53cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class Sphinx:
:ivar outdir: Directory for storing build documents.
"""

def __init__(self, srcdir: str, confdir: str, outdir: str, doctreedir: str,
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,
freshenv: bool = False, warningiserror: bool = False, tags: List[str] = None,
Expand Down

0 comments on commit ce53cce

Please sign in to comment.