block: add typing hints

This commit is contained in:
Iain Learmonth 2022-06-18 13:17:36 +01:00
parent 5a00d59398
commit d6b1273cce
2 changed files with 8 additions and 8 deletions

View file

@ -22,8 +22,8 @@ class BlockRoskomsvobodaAutomation(BlockMirrorAutomation):
_data: Any
def fetch(self):
def fetch(self) -> None:
self._data = requests.get("https://reestr.rublacklist.net/api/v2/domains/json").json()
def parse(self):
def parse(self) -> None:
self.patterns.extend(["https://" + pattern for pattern in self._data])