Skip to content

Commit

Permalink
Merge pull request sphinx-doc#8416 from tk0miya/8398_type_annotation_…
Browse files Browse the repository at this point in the history
…of_confdir

Fix sphinx-doc#8398: Fix type annotation for "confdir" of Sphinx.__init__()
  • Loading branch information
tk0miya committed Nov 14, 2020
2 parents a638658 + ce53cce commit 4c582b3
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 4c582b3

Please sign in to comment.