Fix Pylint warnings.

This commit is contained in:
Sergey Vartanov 2021-11-08 02:21:34 +03:00
parent 11596c4cd8
commit 868a417afc
19 changed files with 137 additions and 148 deletions

View file

@ -109,10 +109,11 @@ class Sector:
if self.main_direction is not None:
if np.allclose(self.main_direction[0], 0):
return None
elif self.main_direction[0] > 0:
if self.main_direction[0] > 0:
return True
else:
return False
return False
return None
def __str__(self) -> str:
return f"{self.start}-{self.end}"