From 25272674db1a8282e1e43e146f445bb91e636399 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 21 Mar 2022 16:19:45 -0700 Subject: [PATCH] src/sage/tensor/modules/format_utilities.py: Conditionalize an import with 'if TYPE_CHECKING:' --- src/sage/tensor/modules/format_utilities.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sage/tensor/modules/format_utilities.py b/src/sage/tensor/modules/format_utilities.py index c6ee6e3bb82..139fee85310 100644 --- a/src/sage/tensor/modules/format_utilities.py +++ b/src/sage/tensor/modules/format_utilities.py @@ -22,9 +22,13 @@ #****************************************************************************** from __future__ import annotations -from sage.misc.latex import LatexExpr +from typing import TYPE_CHECKING + from sage.structure.sage_object import SageObject +if TYPE_CHECKING: + from sage.misc.latex import LatexExpr + def is_atomic(expr, sep=['+', '-']): r"""