summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-05-04 19:09:03 +0200
committerNao Pross <np@0hm.ch>2024-05-04 19:09:03 +0200
commitc5a58efea0b3db2fb773f2b04855b5879f812b27 (patch)
tree8f730fc094fee366719fae8e848f4d00a242d9ae
parentFix v_stack, add __str__ representation to some operation mixins (diff)
downloadpolymatrix-c5a58efea0b3db2fb773f2b04855b5879f812b27.tar.gz
polymatrix-c5a58efea0b3db2fb773f2b04855b5879f812b27.zip
Remove useless cast
-rw-r--r--polymatrix/polymatrix/mixins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/polymatrix/polymatrix/mixins.py b/polymatrix/polymatrix/mixins.py
index 76c31c9..06166ce 100644
--- a/polymatrix/polymatrix/mixins.py
+++ b/polymatrix/polymatrix/mixins.py
@@ -98,7 +98,7 @@ class PolyMatrixAsDictMixin(
@override
def get_poly(self, row: int, col: int) -> PolyDict | None:
if (row, col) in self.data:
- return self.data[cast(MatrixIndex, (row, col))]
+ return self.data[row, col]
return None