mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-23 22:16:25 +02:00
Add type annotation for __init__.
This commit is contained in:
parent
b20006f6ae
commit
737e434260
17 changed files with 45 additions and 41 deletions
|
@ -47,7 +47,7 @@ class Line:
|
|||
Infinity line: Ax + By + C = 0.
|
||||
"""
|
||||
|
||||
def __init__(self, start: np.array, end: np.array):
|
||||
def __init__(self, start: np.array, end: np.array) -> None:
|
||||
# if start.near(end):
|
||||
# util.error("cannot create line by one point")
|
||||
self.a: float = start[1] - end[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue