Fix mypy error

This commit is contained in:
L1ghtn1ng 2020-02-15 22:25:48 +00:00
parent a7313c3967
commit 0b2a14315a

View file

@ -1,5 +1,5 @@
from theHarvester.lib.core import *
from typing import Set, List, Dict
from typing import Set
class SearchCrtsh:
@ -14,7 +14,7 @@ async def do_search(self) -> Set:
try:
url = f'https://crt.sh/?q=%25.{self.word}&output=json'
response = await AsyncFetcher.fetch_all([url], json=True, proxy=self.proxy)
response: List[Dict] = response[0]
response = response[0]
data = set(
[dct['name_value'][2:] if '*.' == dct['name_value'][:2] else dct['name_value']
for dct in response])