summaryrefslogtreecommitdiffstats
path: root/polymatrix/expression/mixins/determinantexprmixin.py
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-04-29 15:53:08 +0200
committerNao Pross <np@0hm.ch>2024-04-29 15:53:17 +0200
commitf3d55a7bf8052ecd49386ae4bc49f9a44c7a8c20 (patch)
treed12869b7b5a520ab68b9a7c2c5668305eed6e12b /polymatrix/expression/mixins/determinantexprmixin.py
parentAdd minor comments (diff)
downloadpolymatrix-f3d55a7bf8052ecd49386ae4bc49f9a44c7a8c20.tar.gz
polymatrix-f3d55a7bf8052ecd49386ae4bc49f9a44c7a8c20.zip
Fix circular imports caused by type annotations
Diffstat (limited to 'polymatrix/expression/mixins/determinantexprmixin.py')
-rw-r--r--polymatrix/expression/mixins/determinantexprmixin.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/polymatrix/expression/mixins/determinantexprmixin.py b/polymatrix/expression/mixins/determinantexprmixin.py
index 2c034d1..4659ded 100644
--- a/polymatrix/expression/mixins/determinantexprmixin.py
+++ b/polymatrix/expression/mixins/determinantexprmixin.py
@@ -1,12 +1,16 @@
+from __future__ import annotations
+
import abc
import collections
import dataclasses
-from numpy import var
+import typing
+
+if typing.TYPE_CHECKING:
+ from polymatrix.expressionstate.abc import ExpressionState
from polymatrix.polymatrix.init import init_poly_matrix
from polymatrix.expression.mixins.expressionbasemixin import ExpressionBaseMixin
from polymatrix.polymatrix.abc import PolyMatrix
-from polymatrix.expressionstate.abc import ExpressionState
class DeterminantExprMixin(ExpressionBaseMixin):