From fbb23071bff27c0ea408e4d9c9d3409a930e4b3d Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sun, 3 Nov 2024 22:52:39 +0000 Subject: [PATCH] Accept PathLike in ``BuildEnvironment.note_included()`` --- sphinx/environment/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/environment/__init__.py b/sphinx/environment/__init__.py index 37a18c351..e63e6c383 100644 --- a/sphinx/environment/__init__.py +++ b/sphinx/environment/__init__.py @@ -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.