diff options
author | Nao Pross <np@0hm.ch> | 2024-04-29 15:53:08 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-04-29 15:53:17 +0200 |
commit | f3d55a7bf8052ecd49386ae4bc49f9a44c7a8c20 (patch) | |
tree | d12869b7b5a520ab68b9a7c2c5668305eed6e12b /polymatrix/expression/mixins/additionexprmixin.py | |
parent | Add minor comments (diff) | |
download | polymatrix-f3d55a7bf8052ecd49386ae4bc49f9a44c7a8c20.tar.gz polymatrix-f3d55a7bf8052ecd49386ae4bc49f9a44c7a8c20.zip |
Fix circular imports caused by type annotations
Diffstat (limited to 'polymatrix/expression/mixins/additionexprmixin.py')
-rw-r--r-- | polymatrix/expression/mixins/additionexprmixin.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/polymatrix/expression/mixins/additionexprmixin.py b/polymatrix/expression/mixins/additionexprmixin.py index 200c328..02b45a4 100644 --- a/polymatrix/expression/mixins/additionexprmixin.py +++ b/polymatrix/expression/mixins/additionexprmixin.py @@ -1,10 +1,15 @@ +from __future__ import annotations + import abc import math +import typing + +if typing.TYPE_CHECKING: + from polymatrix.expressionstate.abc import ExpressionState from polymatrix.utils.getstacklines import FrameSummary from polymatrix.polymatrix.init import init_poly_matrix from polymatrix.polymatrix.abc import PolyMatrix -from polymatrix.expressionstate.abc import ExpressionState from polymatrix.expression.mixins.expressionbasemixin import ExpressionBaseMixin from polymatrix.expression.utils.broadcastpolymatrix import broadcast_poly_matrix |