Add type annotation for __init__.

This commit is contained in:
Sergey Vartanov 2021-08-18 09:36:38 +03:00
parent b20006f6ae
commit 737e434260
17 changed files with 45 additions and 41 deletions

View file

@ -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]