summaryrefslogtreecommitdiff
path: root/sphinx/util/console.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-12-30 21:13:29 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-01-01 20:48:38 +0000
commit26f79b0d2dd88b353ac65623897bdfbe8bc07cab (patch)
tree0d2f0c752cf1f49a45cde1d7f414d75a6114f1ce /sphinx/util/console.py
parentf4c8a0a68e0013808d169357c9f77ebdf19d0f4e (diff)
downloadsphinx-git-26f79b0d2dd88b353ac65623897bdfbe8bc07cab.tar.gz
Use PEP 595 types
Diffstat (limited to 'sphinx/util/console.py')
-rw-r--r--sphinx/util/console.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/util/console.py b/sphinx/util/console.py
index d4c6ff44f..f5bce864f 100644
--- a/sphinx/util/console.py
+++ b/sphinx/util/console.py
@@ -6,7 +6,6 @@ import os
import re
import shutil
import sys
-from typing import Dict, Pattern
try:
# check if colorama is installed to support color on Windows
@@ -15,8 +14,8 @@ except ImportError:
colorama = None
-_ansi_re: Pattern = re.compile('\x1b\\[(\\d\\d;){0,2}\\d\\dm')
-codes: Dict[str, str] = {}
+_ansi_re: re.Pattern = re.compile('\x1b\\[(\\d\\d;){0,2}\\d\\dm')
+codes: dict[str, str] = {}
def terminal_safe(s: str) -> str: