summaryrefslogtreecommitdiff
path: root/sphinx/builders/manpage.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-01-01 20:43:59 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-01-01 20:48:39 +0000
commit14a9289d780240bbce78ad3640e8e1b1b12df43f (patch)
treefd753f5b0f8c7053923b78c8fef2b90b60f9c7fa /sphinx/builders/manpage.py
parent26f79b0d2dd88b353ac65623897bdfbe8bc07cab (diff)
downloadsphinx-git-14a9289d780240bbce78ad3640e8e1b1b12df43f.tar.gz
Use PEP 604 types
Diffstat (limited to 'sphinx/builders/manpage.py')
-rw-r--r--sphinx/builders/manpage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/builders/manpage.py b/sphinx/builders/manpage.py
index 5252d0418..e53fb5aaf 100644
--- a/sphinx/builders/manpage.py
+++ b/sphinx/builders/manpage.py
@@ -4,7 +4,7 @@ from __future__ import annotations
import warnings
from os import path
-from typing import Any, Optional, Union
+from typing import Any
from docutils.frontend import OptionParser
from docutils.io import FileOutput
@@ -39,10 +39,10 @@ class ManualPageBuilder(Builder):
logger.warning(__('no "man_pages" config value found; no manual pages '
'will be written'))
- def get_outdated_docs(self) -> Union[str, list[str]]:
+ def get_outdated_docs(self) -> str | list[str]:
return 'all manpages' # for now
- def get_target_uri(self, docname: str, typ: Optional[str] = None) -> str:
+ def get_target_uri(self, docname: str, typ: str | None = None) -> str:
return ''
@progress_message(__('writing'))