mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-26 12:59:08 +02:00
Fix Pylint warnings.
This commit is contained in:
parent
d2b208ea51
commit
5746edaa3f
22 changed files with 94 additions and 197 deletions
|
@ -23,9 +23,7 @@ PathCommands = list[Union[float, str, np.ndarray]]
|
|||
|
||||
@dataclass
|
||||
class Style:
|
||||
"""
|
||||
Drawing element style.
|
||||
"""
|
||||
"""Drawing element style."""
|
||||
|
||||
fill: Optional[Color] = None
|
||||
stroke: Optional[Color] = None
|
||||
|
@ -60,9 +58,7 @@ class Style:
|
|||
|
||||
|
||||
class Drawing:
|
||||
"""
|
||||
Image.
|
||||
"""
|
||||
"""Image."""
|
||||
|
||||
def __init__(self, file_path: Path, width: int, height: int) -> None:
|
||||
self.file_path: Path = file_path
|
||||
|
@ -95,9 +91,7 @@ class Drawing:
|
|||
|
||||
|
||||
class SVGDrawing(Drawing):
|
||||
"""
|
||||
SVG image.
|
||||
"""
|
||||
"""SVG image."""
|
||||
|
||||
def __init__(self, file_path: Path, width: int, height: int) -> None:
|
||||
super().__init__(file_path, width, height)
|
||||
|
@ -145,9 +139,7 @@ class SVGDrawing(Drawing):
|
|||
|
||||
|
||||
class PNGDrawing(Drawing):
|
||||
"""
|
||||
PNG image.
|
||||
"""
|
||||
"""PNG image."""
|
||||
|
||||
def __init__(self, file_path: Path, width: int, height: int) -> None:
|
||||
super().__init__(file_path, width, height)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue