Fixed MyPy errors
This commit is contained in:
parent
96ae523c40
commit
f996b27ef6
2 changed files with 5 additions and 4 deletions
|
@ -84,7 +84,7 @@ class Client:
|
|||
}
|
||||
|
||||
if code is not None:
|
||||
credentials['code'] = code
|
||||
credentials['code'] = str(code)
|
||||
|
||||
loginreq = atconn.request_cloudflare(
|
||||
'https://aternos.org/panel/ajax/account/login.php',
|
||||
|
@ -399,8 +399,8 @@ class Client:
|
|||
).json()
|
||||
|
||||
return {
|
||||
'qrcode': resp.get('qrcode'),
|
||||
'secret': resp.get('secret'),
|
||||
'qrcode': resp.get('qrcode', ''),
|
||||
'secret': resp.get('secret', ''),
|
||||
}
|
||||
|
||||
def enbale_2fa(self, code: int) -> None:
|
||||
|
|
|
@ -25,7 +25,8 @@ REQUA = \
|
|||
|
||||
class AternosConnect:
|
||||
|
||||
"""Class for sending API requests, bypassing Cloudflare and parsing responses"""
|
||||
"""Class for sending API requests,
|
||||
bypassing Cloudflare and parsing responses"""
|
||||
|
||||
def __init__(self) -> None:
|
||||
|
||||
|
|
Reference in a new issue