Skip to content

Commit ac0dfd3

Browse files
authored
Update matrix_class.py
1 parent 8eace88 commit ac0dfd3

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

matrix/matrix_class.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@
22

33
from __future__ import annotations
44

5-
from typing import ClassVar
6-
5+
from typing import final
76

7+
@final
88
class Matrix:
99
"""
1010
Matrix object generated from a 2D array where each element is an array representing
1111
a row. Supports both integer and float values.
1212
"""
1313

14-
# Fix PLW1641: Mark class as unhashable with type annotation
15-
__hash__: ClassVar[None] = None
16-
1714
def __init__(self, rows: list[list[float]]) -> None:
1815
"""
1916
Initialize matrix from 2D list. Validates input structure and types.

0 commit comments

Comments
 (0)