mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-07 11:37:36 +08:00
Add more ruff rules (#8767)
* Add more ruff rules * Add more ruff rules * pre-commit: Update ruff v0.0.269 -> v0.0.270 * Apply suggestions from code review * Fix doctest * Fix doctest (ignore whitespace) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -173,7 +173,8 @@ class Matrix:
|
||||
result[r, c] += self[r, i] * another[i, c]
|
||||
return result
|
||||
else:
|
||||
raise TypeError(f"Unsupported type given for another ({type(another)})")
|
||||
msg = f"Unsupported type given for another ({type(another)})"
|
||||
raise TypeError(msg)
|
||||
|
||||
def transpose(self) -> Matrix:
|
||||
"""
|
||||
|
Reference in New Issue
Block a user