diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-01-01 20:43:59 +0000 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-01-01 20:48:39 +0000 |
commit | 14a9289d780240bbce78ad3640e8e1b1b12df43f (patch) | |
tree | fd753f5b0f8c7053923b78c8fef2b90b60f9c7fa /sphinx/util/math.py | |
parent | 26f79b0d2dd88b353ac65623897bdfbe8bc07cab (diff) | |
download | sphinx-git-14a9289d780240bbce78ad3640e8e1b1b12df43f.tar.gz |
Use PEP 604 types
Diffstat (limited to 'sphinx/util/math.py')
-rw-r--r-- | sphinx/util/math.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/util/math.py b/sphinx/util/math.py index bac197d7a..cd06dc249 100644 --- a/sphinx/util/math.py +++ b/sphinx/util/math.py @@ -2,8 +2,6 @@ from __future__ import annotations -from typing import Optional - from docutils import nodes from sphinx.builders.html import HTML5Translator @@ -24,7 +22,7 @@ def get_node_equation_number(writer: HTML5Translator, node: nodes.math_block) -> return node['number'] -def wrap_displaymath(text: str, label: Optional[str], numbering: bool) -> str: +def wrap_displaymath(text: str, label: str | None, numbering: bool) -> str: def is_equation(part: str) -> str: return part.strip() |