Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 2527267

Browse files
author
Matthias Koeppe
committed
src/sage/tensor/modules/format_utilities.py: Conditionalize an import with 'if TYPE_CHECKING:'
1 parent 71138ff commit 2527267

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sage/tensor/modules/format_utilities.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@
2222
#******************************************************************************
2323
from __future__ import annotations
2424

25-
from sage.misc.latex import LatexExpr
25+
from typing import TYPE_CHECKING
26+
2627
from sage.structure.sage_object import SageObject
2728

29+
if TYPE_CHECKING:
30+
from sage.misc.latex import LatexExpr
31+
2832

2933
def is_atomic(expr, sep=['+', '-']):
3034
r"""

0 commit comments

Comments
 (0)