mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-10 07:36:49 +02:00
Fix code style.
Fix some pylint warnings.
This commit is contained in:
parent
fa8e5551e7
commit
cbbd7bcf05
4 changed files with 64 additions and 50 deletions
|
@ -149,9 +149,15 @@ def draw_grid(
|
|||
|
||||
|
||||
def draw_icon(
|
||||
file_name: str, icon_ids: Set[str], extractor: IconExtractor
|
||||
) -> None:
|
||||
file_name: str, icon_ids: Set[str], extractor: IconExtractor
|
||||
) -> None:
|
||||
"""
|
||||
Draw icon to the SVG file.
|
||||
|
||||
:param file_name: output SVG file name
|
||||
:param icon_ids: input shape string identifiers
|
||||
:param extractor: icon extractor
|
||||
"""
|
||||
icon_set: List[Shape] = []
|
||||
for icon_id in icon_ids: # type: str
|
||||
icon, extracted = extractor.get_path(icon_id) # type: Shape, bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue