mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-31 18:06:23 +02:00
Fix Pylint warnings.
This commit is contained in:
parent
960a18633f
commit
e9933e9f2b
5 changed files with 26 additions and 30 deletions
|
@ -134,8 +134,8 @@ class MapCSSWriter:
|
|||
return ""
|
||||
|
||||
selector: str = target + matcher.get_mapcss_selector(prefix) + " {\n"
|
||||
for element in elements:
|
||||
selector += f" {element}: {elements[element]};\n"
|
||||
for key, value in elements.items():
|
||||
selector += f" {key}: {value};\n"
|
||||
selector += "}\n"
|
||||
|
||||
return selector
|
||||
|
@ -176,7 +176,7 @@ class MapCSSWriter:
|
|||
)
|
||||
|
||||
|
||||
def ui(options: argparse.Namespace) -> None:
|
||||
def generate_mapcss(options: argparse.Namespace) -> None:
|
||||
"""Write MapCSS 0.2 scheme."""
|
||||
directory: Path = workspace.get_mapcss_path()
|
||||
icons_with_outline_path: Path = workspace.get_mapcss_icons_path()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue