Skip to content

Commit

Permalink
__all__ added
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiDrang committed Oct 5, 2024
1 parent 3f6c697 commit 5976d2d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python3_anticaptcha/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
from .core.base import BaseCaptcha
from .core.enum import ControlPostfixEnm

__all__ = ("Control",)


class Control(BaseCaptcha):
def __init__(
Expand Down
2 changes: 2 additions & 0 deletions src/python3_anticaptcha/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from .serializer import CreateTaskBaseSer, CreateTaskResponseSer, GetTaskResultRequestSer, GetTaskResultResponseSer
from .result_handler import get_sync_result, get_async_result

__all__ = ("BaseCaptcha",)


class BaseCaptcha:
NO_CAPTCHA_ERR = "You did not send any file, local link or URL."
Expand Down
2 changes: 2 additions & 0 deletions src/python3_anticaptcha/core/result_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from .config import RETRIES, BASE_REQUEST_URL, GET_RESULT_POSTFIX, attempts_generator
from .serializer import GetTaskResultRequestSer, GetTaskResultResponseSer

__all__ = ("get_sync_result", "get_async_result")


def get_sync_result(
result_payload: GetTaskResultRequestSer, sleep_time: int, url_response: str = GET_RESULT_POSTFIX
Expand Down
2 changes: 2 additions & 0 deletions src/python3_anticaptcha/image_captcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from .core.base import BaseCaptcha
from .core.enum import CaptchaTypeEnm, SaveFormatsEnm

__all__ = ("ImageToTextCaptcha",)


class ImageToTextCaptcha(BaseCaptcha):

Expand Down

0 comments on commit 5976d2d

Please sign in to comment.