From c5a58efea0b3db2fb773f2b04855b5879f812b27 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sat, 4 May 2024 19:09:03 +0200 Subject: Remove useless cast --- polymatrix/polymatrix/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1