The black formatter is no longer beta (#5960)
* The black formatter is no longer beta
* pre-commit autoupdate
* pre-commit autoupdate
* Remove project_euler/problem_145 which is killing our CI tests
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -172,7 +172,7 @@ class Vector:
|
||||
"""
|
||||
if len(self.__components) == 0:
|
||||
raise Exception("Vector is empty")
|
||||
squares = [c ** 2 for c in self.__components]
|
||||
squares = [c**2 for c in self.__components]
|
||||
return math.sqrt(sum(squares))
|
||||
|
||||
def angle(self, other: Vector, deg: bool = False) -> float:
|
||||
|
||||
Reference in New Issue
Block a user