lint: tidy up code some more, pylint is enforcing
This commit is contained in:
parent
66b3ccc0f0
commit
61564e8c01
17 changed files with 72 additions and 38 deletions
|
@ -1,3 +1,5 @@
|
|||
# pylint: disable=too-few-public-methods
|
||||
|
||||
import builtins
|
||||
from datetime import datetime
|
||||
from typing import List, Dict, Union, Any, Optional
|
||||
|
@ -33,14 +35,13 @@ def onion_alternative(origin: Origin) -> List[Dict[str, Any]]:
|
|||
url: Optional[str] = origin.onion()
|
||||
if url is None:
|
||||
return []
|
||||
else:
|
||||
return [{
|
||||
"proto": "tor",
|
||||
"type": "eotk",
|
||||
"created_at": str(origin.added),
|
||||
"updated_at": str(origin.updated),
|
||||
"url": url}
|
||||
]
|
||||
return [{
|
||||
"proto": "tor",
|
||||
"type": "eotk",
|
||||
"created_at": str(origin.added),
|
||||
"updated_at": str(origin.updated),
|
||||
"url": url}
|
||||
]
|
||||
|
||||
|
||||
def proxy_alternative(proxy: Proxy) -> Dict[str, Any]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue