fixed ruff woof

This commit is contained in:
Phexi committed 2026-10-22 00:38:36 +02:00
1 parent 387149fd67
commit a1b4dfa5d4
1 file changed
+1 -3
+1 -3
View File
@@ -102,8 +102,6 @@ def get_rotate(matrix: list[list[float]], angle:int) -> list[list[float]]:
else: else:
print("Can't rotate this matrix! Wrong amount of rows!") print("Can't rotate this matrix! Wrong amount of rows!")
return [[0, 0],[0, 0]] return [[0, 0],[0, 0]]
return matmul(rotate_matrix, matrix)
def transpose(matrix: list[list[float]]) -> list[list[float]]: def transpose(matrix: list[list[float]]) -> list[list[float]]:
"""Return the transpose of a 2‑D list. """Return the transpose of a 2‑D list.
@@ -133,5 +131,5 @@ def transpose(matrix: list[list[float]]) -> list[list[float]]:
if __name__ == "__main__": if __name__ == "__main__":
# testing and shit # testing and shit
print(matmul([[1, 2], [3, 4]], [[5, 6], [7, 8]])) print(matmul([[1, 2], [3, 4]], [[5, 6], [7, 8]]))
print(tabulate(([[1, 2], [3, 4]]))) print(tabulate([[1, 2], [3, 4]]))
print(len([[1],[0]])) print(len([[1],[0]]))