Fix code style.

This commit is contained in:
Sergey Vartanov 2021-08-29 01:55:35 +03:00
parent 39428cad19
commit 59218b4931

View file

@ -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: