We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eace88 commit ac0dfd3Copy full SHA for ac0dfd3
1 file changed
matrix/matrix_class.py
@@ -2,18 +2,15 @@
2
3
from __future__ import annotations
4
5
-from typing import ClassVar
6
-
+from typing import final
7
+@final
8
class Matrix:
9
"""
10
Matrix object generated from a 2D array where each element is an array representing
11
a row. Supports both integer and float values.
12
13
14
- # Fix PLW1641: Mark class as unhashable with type annotation
15
- __hash__: ClassVar[None] = None
16
17
def __init__(self, rows: list[list[float]]) -> None:
18
19
Initialize matrix from 2D list. Validates input structure and types.
0 commit comments