Skip to content

Commit

Permalink
Use the _StrPath proxy for sphinx.application
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Nov 27, 2024
1 parent 768c6b7 commit 3930a1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sphinx/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from sphinx.project import Project
from sphinx.registry import SphinxComponentRegistry
from sphinx.util import docutils, logging
from sphinx.util._pathlib import _StrPath
from sphinx.util._pathlib import _StrPath, _StrPathProperty
from sphinx.util.build_phase import BuildPhase
from sphinx.util.console import bold
from sphinx.util.display import progress_message
Expand Down Expand Up @@ -140,6 +140,11 @@ class Sphinx:
warningiserror: Final = False
_warncount: int

srcdir = _StrPathProperty()
confdir = _StrPathProperty()
outdir = _StrPathProperty()
doctreedir = _StrPathProperty()

def __init__(self, srcdir: str | os.PathLike[str], confdir: str | os.PathLike[str] | None,
outdir: str | os.PathLike[str], doctreedir: str | os.PathLike[str],
buildername: str, confoverrides: dict | None = None,
Expand Down

0 comments on commit 3930a1c

Please sign in to comment.