mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-02 02:41:57 +02:00
Fix code style.
This commit is contained in:
parent
39428cad19
commit
59218b4931
1 changed files with 2 additions and 3 deletions
|
@ -115,11 +115,10 @@ class Matcher:
|
|||
if "location_restrictions" in structure:
|
||||
self.location_restrictions = structure["location_restrictions"]
|
||||
|
||||
def check_zoom_level(self, zoom_level: int):
|
||||
def check_zoom_level(self, zoom_level: int) -> bool:
|
||||
"""Check whether zoom level is matching."""
|
||||
return (
|
||||
self.start_zoom_level is None
|
||||
or zoom_level >= self.start_zoom_level
|
||||
self.start_zoom_level is None or zoom_level >= self.start_zoom_level
|
||||
)
|
||||
|
||||
def is_matched(self, tags: dict[str, str]) -> bool:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue