Skip to content

Commit c6427ca

Browse files
committed
Fix type error
1 parent 57e6aaf commit c6427ca

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

sphinx/domains/c/_ids.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from __future__ import annotations
22

3-
import re
43
from typing import TYPE_CHECKING
54

5+
import regex as re
6+
67
if TYPE_CHECKING:
78
from collections.abc import Sequence, Set
89

sphinx/domains/cpp/_ids.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,10 @@
251251

252252
from __future__ import annotations
253253

254-
import re
255254
from typing import TYPE_CHECKING
256255

256+
import regex as re
257+
257258
if TYPE_CHECKING:
258259
from collections.abc import Sequence, Set
259260

sphinx/domains/cpp/_parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from __future__ import annotations
22

3-
import re
43
from typing import TYPE_CHECKING
54

5+
import regex as re
6+
67
from sphinx.domains.cpp._ast import (
78
ASTAlignofExpr,
89
ASTArray,

0 commit comments

Comments
 (0)