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

@ -23,7 +23,7 @@ class Occupied:
texts, shapes).
"""
def __init__(self, width: int, height: int, overlap: float):
def __init__(self, width: int, height: int, overlap: float) -> None:
self.matrix = np.full((int(width), int(height)), False, dtype=bool)
self.width: float = width
self.height: float = height
@ -64,7 +64,7 @@ class Point(Tagged):
priority: float = 0,
is_for_node: bool = True,
draw_outline: bool = True,
):
) -> None:
super().__init__()
assert point is not None