Fix Pylint warnings.

This commit is contained in:
Sergey Vartanov 2021-10-25 02:15:11 +03:00
parent 960a18633f
commit e9933e9f2b
5 changed files with 26 additions and 30 deletions

View file

@ -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()