Skip to content

Commit f24ca20

Browse files
formatting
1 parent e98d818 commit f24ca20

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

matrix/matrix_operation.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def transpose(matrix: list[list], return_map: bool = True) -> list[list] | map[l
9696
return list(map(list, zip(*matrix)))
9797
raise TypeError("Expected a matrix, got int/list instead")
9898

99+
99100
def minor(matrix: list[list], row: int, column: int) -> list[list]:
100101
"""
101102
>>> minor([[1, 2], [3, 4]], 1, 1)
@@ -155,8 +156,9 @@ def _shape(matrix: list[list]) -> tuple[int, int]:
155156
return len(matrix), len(matrix[0])
156157

157158

158-
def _verify_matrix_sizes(matrix_a: list[list], matrix_b: list[list]) -> tuple[tuple, tuple]:
159-
shape = _shape(matrix_a) + _shape(matrix_b)
159+
def _verify_matrix_sizes(
160+
matrix_a: list[list], matrix_b: list[list]
161+
) -> tuple[tuple, tuple]:
160162
if shape[0] != shape[3] or shape[1] != shape[2]:
161163
raise ValueError(
162164
f"operands could not be broadcast together with shape "

0 commit comments

Comments
 (0)