Skip to content

Commit 18394a4

Browse files
committed
Avoid typing imports
1 parent 7f51cc4 commit 18394a4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sphinx/_cli/console_utilities.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
import os
44
import re
55
import sys
6-
from typing import Dict, Pattern
6+
7+
if False:
8+
# NoQA
9+
from typing import Dict
710

811
try:
912
# check if colorama is installed to support color on Windows
@@ -12,8 +15,8 @@
1215
colorama = None
1316

1417

15-
_ansi_re: Pattern = re.compile('\x1b\\[(\\d\\d;){0,2}\\d\\dm')
16-
codes: Dict[str, str] = {}
18+
_ansi_re: 're.Pattern[str]' = re.compile('\x1b\\[(\\d\\d;){0,2}\\d\\dm')
19+
codes: 'Dict[str, str]' = {}
1720

1821

1922
def terminal_safe(s: str) -> str:

0 commit comments

Comments
 (0)