Backward compatability bugfix
This commit is contained in:
parent
342ca2e1cc
commit
33a5bcacf1
@ -7,7 +7,7 @@ from decimal import Decimal
|
|||||||
from itertools import product
|
from itertools import product
|
||||||
from threading import Event
|
from threading import Event
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from typing import Any, Dict, List, NoReturn, Optional, Set, Tuple, TypedDict, Union
|
from typing import Any, Dict, List, NoReturn, Optional, Set, Tuple, Union
|
||||||
|
|
||||||
from requests import HTTPError, RequestException, Response
|
from requests import HTTPError, RequestException, Response
|
||||||
|
|
||||||
@ -280,11 +280,11 @@ class BaseCitizen(access_points.CitizenAPI):
|
|||||||
return self._post_main_session_get_challenge(captcha_id, image_id).json()
|
return self._post_main_session_get_challenge(captcha_id, image_id).json()
|
||||||
|
|
||||||
def solve_captcha(self, src: str) -> Optional[List[Dict[str, int]]]:
|
def solve_captcha(self, src: str) -> Optional[List[Dict[str, int]]]:
|
||||||
class _API_RESULT(TypedDict):
|
class _API_RESULT(dict):
|
||||||
x: int
|
x: int
|
||||||
y: int
|
y: int
|
||||||
|
|
||||||
class _API_RETURN(TypedDict):
|
class _API_RETURN(dict):
|
||||||
status: bool
|
status: bool
|
||||||
message: str
|
message: str
|
||||||
result: Optional[List[_API_RESULT]]
|
result: Optional[List[_API_RESULT]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user