mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-03 00:29:53 +02:00
Fix Pylint warnings.
This commit is contained in:
parent
d2b208ea51
commit
5746edaa3f
22 changed files with 94 additions and 197 deletions
|
@ -17,9 +17,7 @@ LONGITUDE_MAX_DIFFERENCE: float = 0.5
|
|||
|
||||
@dataclass
|
||||
class BoundaryBox:
|
||||
"""
|
||||
Rectangle that limit space on the map.
|
||||
"""
|
||||
"""Rectangle that limit space on the map."""
|
||||
|
||||
left: float # Minimum longitude.
|
||||
bottom: float # Minimum latitude.
|
||||
|
|
|
@ -40,9 +40,7 @@ def osm_zoom_level_to_pixels_per_meter(
|
|||
|
||||
|
||||
class Flinger:
|
||||
"""
|
||||
Convert geo coordinates into SVG position points.
|
||||
"""
|
||||
"""Convert geo coordinates into SVG position points."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -41,9 +41,7 @@ def norm(vector: np.ndarray) -> np.ndarray:
|
|||
|
||||
|
||||
class Polyline:
|
||||
"""
|
||||
List of connected points.
|
||||
"""
|
||||
"""List of connected points."""
|
||||
|
||||
def __init__(self, points: list[np.ndarray]) -> None:
|
||||
self.points: list[np.ndarray] = points
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue