Fixed MyPy errors

This commit is contained in:
DarkCat09 2022-09-29 18:18:15 +04:00
parent 96ae523c40
commit f996b27ef6
2 changed files with 5 additions and 4 deletions

View file

@ -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:

View file

@ -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: