summaryrefslogtreecommitdiffstats
path: root/polymatrix/expression/mixins/derivativeexprmixin.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/derivativeexprmixin.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/derivativeexprmixin.py')
-rw-r--r--polymatrix/expression/mixins/derivativeexprmixin.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/polymatrix/expression/mixins/derivativeexprmixin.py b/polymatrix/expression/mixins/derivativeexprmixin.py
index 31a1e31..301166a 100644
--- a/polymatrix/expression/mixins/derivativeexprmixin.py
+++ b/polymatrix/expression/mixins/derivativeexprmixin.py
@@ -1,10 +1,14 @@
+from __future__ import annotations
+
import abc
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
from polymatrix.expression.utils.getderivativemonomials import differentiate_polynomial
from polymatrix.expression.utils.getvariableindices import (
get_variable_indices_from_variable,