summaryrefslogtreecommitdiff
path: root/sphinx/builders/latex/util.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/latex/util.py
parent26f79b0d2dd88b353ac65623897bdfbe8bc07cab (diff)
downloadsphinx-git-14a9289d780240bbce78ad3640e8e1b1b12df43f.tar.gz
Use PEP 604 types
Diffstat (limited to 'sphinx/builders/latex/util.py')
-rw-r--r--sphinx/builders/latex/util.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/builders/latex/util.py b/sphinx/builders/latex/util.py
index a57104f53..01597f995 100644
--- a/sphinx/builders/latex/util.py
+++ b/sphinx/builders/latex/util.py
@@ -2,8 +2,6 @@
from __future__ import annotations
-from typing import Optional
-
from docutils.writers.latex2e import Babel
@@ -36,7 +34,7 @@ class ExtBabel(Babel):
self.supported = False
return 'english' # fallback to english
- def get_mainlanguage_options(self) -> Optional[str]:
+ def get_mainlanguage_options(self) -> str | None:
"""Return options for polyglossia's ``\\setmainlanguage``."""
if self.use_polyglossia is False:
return None