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

Commit

Permalink
src/sage/tensor/modules/free_module_tensor.py: Conditionalize an impo…
Browse files Browse the repository at this point in the history
…rt with 'if TYPE_CHECKING:', add 'from __future__ import annotations'
  • Loading branch information
Matthias Koeppe committed Mar 28, 2022
1 parent 51ee92b commit 974ec0a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/sage/tensor/modules/free_module_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ class being:
# the License, or (at your option) any later version.
# https://www.gnu.org/licenses/
# *****************************************************************************
from typing import Dict
from __future__ import annotations

from typing import TYPE_CHECKING, Dict

from sage.rings.integer import Integer
from sage.structure.element import ModuleElementWithMutability
Expand All @@ -201,7 +203,10 @@ class being:
from sage.tensor.modules.tensor_with_indices import TensorWithIndices
from sage.parallel.decorate import parallel
from sage.parallel.parallelism import Parallelism
from sage.tensor.modules.free_module_basis import FreeModuleBasis

if TYPE_CHECKING:
from sage.tensor.modules.free_module_basis import FreeModuleBasis


class FreeModuleTensor(ModuleElementWithMutability):
r"""
Expand Down

0 comments on commit 974ec0a

Please sign in to comment.