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:
|
if code is not None:
|
||||||
credentials['code'] = code
|
credentials['code'] = str(code)
|
||||||
|
|
||||||
loginreq = atconn.request_cloudflare(
|
loginreq = atconn.request_cloudflare(
|
||||||
'https://aternos.org/panel/ajax/account/login.php',
|
'https://aternos.org/panel/ajax/account/login.php',
|
||||||
|
@ -399,8 +399,8 @@ class Client:
|
||||||
).json()
|
).json()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'qrcode': resp.get('qrcode'),
|
'qrcode': resp.get('qrcode', ''),
|
||||||
'secret': resp.get('secret'),
|
'secret': resp.get('secret', ''),
|
||||||
}
|
}
|
||||||
|
|
||||||
def enbale_2fa(self, code: int) -> None:
|
def enbale_2fa(self, code: int) -> None:
|
||||||
|
|
|
@ -25,7 +25,8 @@ REQUA = \
|
||||||
|
|
||||||
class AternosConnect:
|
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:
|
def __init__(self) -> None:
|
||||||
|
|
||||||
|
|
Reference in a new issue