We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86ecf58 commit ae03e88Copy full SHA for ae03e88
wkcuber/mag.py
@@ -4,6 +4,7 @@
4
5
from typing import List
6
7
+
8
@total_ordering
9
class Mag:
10
def __init__(self, mag):
@@ -53,7 +54,7 @@ def scale_by(self, factor: int):
53
54
self.mag = [mag * factor for mag in self.mag]
55
56
def divided(self, coord: List[int]):
- return [ c // m for c, m in zip(coord, self.mag)]
57
+ return [c // m for c, m in zip(coord, self.mag)]
58
59
def divide_by(self, d: int):
60
self.mag = [mag // d for mag in self.mag]
0 commit comments