diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-07-18 22:49:56 +0100 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-07-18 22:49:56 +0100 |
commit | 94024e6efaa23869a6141dba05118c158d3d3f8f (patch) | |
tree | 1bfccc5447ca099627c4c31f536d7082b7b9eb6a /sphinx/util/osutil.py | |
parent | a4d41aa889388bf8ee2815d4819235b5ca978a8d (diff) | |
parent | eb0a6c574fd18d5c5d903e5d07cba8cafc376ee0 (diff) | |
download | sphinx-git-94024e6efaa23869a6141dba05118c158d3d3f8f.tar.gz |
Merge branch '5.x'
# Conflicts:
# sphinx/ext/autodoc/__init__.py
# sphinx/writers/html5.py
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r-- | sphinx/util/osutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py index d0ed42c8c..bfc80adcf 100644 --- a/sphinx/util/osutil.py +++ b/sphinx/util/osutil.py @@ -112,7 +112,7 @@ def make_filename_from_project(project: str) -> str: return make_filename(project_suffix_re.sub('', project)).lower() -def relpath(path: str, start: str = os.curdir) -> str: +def relpath(path: str, start: Optional[str] = os.curdir) -> str: """Return a relative filepath to *path* either from the current directory or from an optional *start* directory. |