block: add typing hints
This commit is contained in:
parent
5a00d59398
commit
d6b1273cce
2 changed files with 8 additions and 8 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue