summaryrefslogtreecommitdiff
path: root/sphinx/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r--sphinx/errors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py
index db754dd08..a9172e07b 100644
--- a/sphinx/errors.py
+++ b/sphinx/errors.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, Optional
+from typing import Any
class SphinxError(Exception):
@@ -42,7 +42,7 @@ class ExtensionError(SphinxError):
"""Extension error."""
def __init__(
- self, message: str, orig_exc: Optional[Exception] = None, modname: Optional[str] = None
+ self, message: str, orig_exc: Exception | None = None, modname: str | None = None
) -> None:
super().__init__(message)
self.message = message