mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Accept PathLike in `BuildEnvironment.note_included()
`
This commit is contained in:
parent
c1172022ed
commit
fbb23071bf
@ -598,7 +598,7 @@ class BuildEnvironment:
|
||||
docname = self.docname
|
||||
self.dependencies[docname].add(os.fspath(filename))
|
||||
|
||||
def note_included(self, filename: str) -> None:
|
||||
def note_included(self, filename: str | os.PathLike[str]) -> None:
|
||||
"""Add *filename* as a included from other document.
|
||||
|
||||
This means the document is not orphaned.
|
||||
|
Loading…
Reference in New Issue
Block a user