diff options
author | danieleades <33452915+danieleades@users.noreply.github.com> | 2022-07-18 22:08:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 22:08:16 +0100 |
commit | a504ac6100a577cbda1bedf80d69636603ee287c (patch) | |
tree | 0aa79585440486bdb109f7238f8f5c992dad0d99 /sphinx/environment/adapters/toctree.py | |
parent | a340427ba4d208193d539cb7e8401be23d75547e (diff) | |
download | sphinx-git-a504ac6100a577cbda1bedf80d69636603ee287c.tar.gz |
Improve static typing strictness (#10569)
Diffstat (limited to 'sphinx/environment/adapters/toctree.py')
-rw-r--r-- | sphinx/environment/adapters/toctree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/environment/adapters/toctree.py b/sphinx/environment/adapters/toctree.py index a04c4da8f..6db274000 100644 --- a/sphinx/environment/adapters/toctree.py +++ b/sphinx/environment/adapters/toctree.py @@ -164,7 +164,7 @@ class TocTree: ref, location=toctreenode) except KeyError: # this is raised if the included file does not exist - if excluded(self.env.doc2path(ref, None)): + if excluded(self.env.doc2path(ref, False)): message = __('toctree contains reference to excluded document %r') else: message = __('toctree contains reference to nonexisting document %r') |