Skip to content

Commit a961455

Browse files
authored
Update matrix_class.py
1 parent d1d1bcc commit a961455

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

matrix/matrix_class.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
from __future__ import annotations
44

5+
from typing import ClassVar
56

67
class Matrix:
78
"""
89
Matrix object generated from a 2D array where each element is an array representing
910
a row. Supports both integer and float values.
1011
"""
1112

12-
__hash__: None = None # Fix PLW1641: Mark class as unhashable with type annotation
13+
__hash__: ClassVar[None] = None # Fix PLW1641: Mark class as unhashable with type annotation
1314

1415
def __init__(self, rows: list[list[float]]) -> None:
1516
"""

0 commit comments

Comments
 (0)