mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-03 19:31:52 +02:00
Fix Pylint warnings.
This commit is contained in:
parent
d2b208ea51
commit
5746edaa3f
22 changed files with 94 additions and 197 deletions
|
@ -33,18 +33,14 @@ IconDescription = list[Union[str, dict[str, str]]]
|
|||
|
||||
@dataclass
|
||||
class LineStyle:
|
||||
"""
|
||||
SVG line style and its priority.
|
||||
"""
|
||||
"""SVG line style and its priority."""
|
||||
|
||||
style: dict[str, Union[int, float, str]]
|
||||
priority: float = 0.0
|
||||
|
||||
|
||||
class MatchingType(Enum):
|
||||
"""
|
||||
Description on how tag was matched.
|
||||
"""
|
||||
"""Description on how tag was matched."""
|
||||
|
||||
NOT_MATCHED = 0
|
||||
MATCHED_BY_SET = 1
|
||||
|
@ -106,9 +102,7 @@ def match_location(restrictions: dict[str, str], country: str) -> bool:
|
|||
|
||||
|
||||
class Matcher:
|
||||
"""
|
||||
Tag matching.
|
||||
"""
|
||||
"""Tag matching."""
|
||||
|
||||
def __init__(
|
||||
self, structure: dict[str, Any], group: Optional[dict[str, Any]] = None
|
||||
|
@ -215,9 +209,7 @@ def get_shape_specifications(
|
|||
|
||||
|
||||
class NodeMatcher(Matcher):
|
||||
"""
|
||||
Tag specification matcher.
|
||||
"""
|
||||
"""Tag specification matcher."""
|
||||
|
||||
def __init__(
|
||||
self, structure: dict[str, Any], group: dict[str, Any]
|
||||
|
@ -265,9 +257,7 @@ class NodeMatcher(Matcher):
|
|||
|
||||
|
||||
class WayMatcher(Matcher):
|
||||
"""
|
||||
Special tag matcher for ways.
|
||||
"""
|
||||
"""Special tag matcher for ways."""
|
||||
|
||||
def __init__(self, structure: dict[str, Any], scheme: "Scheme") -> None:
|
||||
super().__init__(structure)
|
||||
|
@ -289,9 +279,7 @@ class WayMatcher(Matcher):
|
|||
|
||||
|
||||
class RoadMatcher(Matcher):
|
||||
"""
|
||||
Special tag matcher for highways.
|
||||
"""
|
||||
"""Special tag matcher for highways."""
|
||||
|
||||
def __init__(self, structure: dict[str, Any], scheme: "Scheme") -> None:
|
||||
super().__init__(structure)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue