File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 5757import re
5858import sys
5959from inspect import Parameter
60+ from pathlib import Path
6061from types import ModuleType
6162from typing import TYPE_CHECKING , Any , ClassVar , cast
6263
@@ -154,10 +155,10 @@ class FakeApplication:
154155 verbosity = 0
155156
156157 def __init__ (self ) -> None :
157- self .doctreedir = None
158+ self .doctreedir = Path ()
158159 self .events = None
159160 self .extensions : dict [str , Extension ] = {}
160- self .srcdir = None
161+ self .srcdir = Path ()
161162 self .config = Config ()
162163 self .project = Project ('' , {})
163164 self .registry = SphinxComponentRegistry ()
Original file line number Diff line number Diff line change 4646from sphinx .pycode import ModuleAnalyzer
4747from sphinx .registry import SphinxComponentRegistry
4848from sphinx .util import logging , rst
49+ from sphinx .util ._pathlib import _StrPath
4950from sphinx .util .inspect import getall , safe_getattr
5051from sphinx .util .osutil import ensuredir
5152from sphinx .util .template import SphinxTemplateLoader
@@ -67,7 +68,7 @@ def __init__(self, translator: NullTranslations) -> None:
6768 self .config = Config ()
6869 self .registry = SphinxComponentRegistry ()
6970 self .messagelog : list [str ] = []
70- self .srcdir = '/'
71+ self .srcdir = _StrPath ( '/' )
7172 self .translator = translator
7273 self .verbosity = 0
7374 self ._warncount = 0
You can’t perform that action at this time.
0 commit comments