summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--polymatrix/expressionstate/mixins.py2
-rw-r--r--polymatrix/polymatrix/typing.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/polymatrix/expressionstate/mixins.py b/polymatrix/expressionstate/mixins.py
index 9c30475..0e61591 100644
--- a/polymatrix/expressionstate/mixins.py
+++ b/polymatrix/expressionstate/mixins.py
@@ -41,7 +41,7 @@ class ExpressionStateMixin(
index = IndexRange(start=self.n_variables, end=self.n_variables + size)
# FIXME: this is the only way the typechecker is happy, and it does
- # make sense indeed because ExpressionState is not a dataclass
+ # make sense because ExpressionState is not a dataclass.
# The typechecker should be somehow informed that this is an ABC that
# will eventually become a dataclass, but of course it can't know that
from .impl import ExpressionStateImpl
diff --git a/polymatrix/polymatrix/typing.py b/polymatrix/polymatrix/typing.py
index cebf636..2aa3f76 100644
--- a/polymatrix/polymatrix/typing.py
+++ b/polymatrix/polymatrix/typing.py
@@ -65,6 +65,8 @@ class MonomialIndex(tuple[VariableIndex]):
# they have the same degree the index counts
if self.degree == other.degree:
# Assumes that monomialindex is sorted!
+ # FIXME: if the first variable is also the same continue until one
+ # finishes or the values differ.
return self[0] < other[0]
return self.degree < other.degree