Misc fixes across multiple algorithms (#6912)

Source: Snyk code quality
Add scikit-fuzzy to requirements

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
This commit is contained in:
CenTdemeern1
2022-10-15 22:25:38 -07:00
committed by GitHub
parent c94e215c8d
commit 04698538d8
19 changed files with 40 additions and 48 deletions

View File

@ -286,7 +286,7 @@ class Matrix:
# MATRIX OPERATIONS
def __eq__(self, other: object) -> bool:
if not isinstance(other, Matrix):
raise TypeError("A Matrix can only be compared with another Matrix")
return NotImplemented
return self.rows == other.rows
def __ne__(self, other: object) -> bool: