From 6cc91c4270859f61d69b983ab0fd65493afd2e65 Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 30 Oct 2023 07:51:34 +0300 Subject: [PATCH 1/7] Update sphinx.yml --- .github/workflows/sphinx.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 07662d3..6c5360b 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -14,8 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: 3.11.6 - name: Build docs requirements run: pip install -r docs/requirements.txt From 6cfc409a040460503c01fcc5656471de16ae060c Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 30 Oct 2023 07:51:37 +0300 Subject: [PATCH 2/7] Update requirements.txt --- src/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requirements.txt b/src/requirements.txt index 232cfd6..954812f 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,4 +1,4 @@ requests>=2.21.0 -aiohttp==3.* +aiohttp==3.8.4 tenacity==8.* pydantic==1.* From aff99dc5f5c6aff35661e7c62a4a8305b34bc5fd Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 30 Oct 2023 07:57:37 +0300 Subject: [PATCH 3/7] Update requirements.txt --- docs/requirements.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 2926897..0a305ba 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,6 @@ -pallets_sphinx_themes==2.* -myst-parser==2.0.* -autodoc_pydantic==2.0.* +sphinx==7.2.6 +pallets_sphinx_themes==2.1.1 +myst-parser==2.0.0 +autodoc_pydantic==2.0.1 +pydantic==2.4.2 +pydantic-settings==2.0.3 From af26629098b47666f337cf12257432d8db5c755e Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 30 Oct 2023 07:57:41 +0300 Subject: [PATCH 4/7] Update serializer.py --- src/python3_anticaptcha/core/serializer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python3_anticaptcha/core/serializer.py b/src/python3_anticaptcha/core/serializer.py index ad190e0..ac1f1e9 100644 --- a/src/python3_anticaptcha/core/serializer.py +++ b/src/python3_anticaptcha/core/serializer.py @@ -1,4 +1,4 @@ -from typing import Dict +from typing import Dict, Literal from pydantic import Field, BaseModel, constr @@ -26,7 +26,7 @@ class CreateTaskRequestSer(BaseAPIRequestSer): task: Dict = Field(None, description="Task object.") languagePool: str = Field("en", description="Sets workers' pool language. Only applies to image captchas.") callbackUrl: str = Field(None, description="Web address where we can send the results of captcha task processing.") - softId: int = Field(APP_KEY, const=True) + softId: Literal[APP_KEY] = APP_KEY class CreateTaskRequestTaskSer(MyBaseModel): From ff7754961108b0af7c49e85b66bf218156984441 Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 30 Oct 2023 07:57:46 +0300 Subject: [PATCH 5/7] Update FunCaptchaTaskProxyless.py --- src/python3_anticaptcha/FunCaptchaTaskProxyless.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python3_anticaptcha/FunCaptchaTaskProxyless.py b/src/python3_anticaptcha/FunCaptchaTaskProxyless.py index 3f384ec..722d1db 100644 --- a/src/python3_anticaptcha/FunCaptchaTaskProxyless.py +++ b/src/python3_anticaptcha/FunCaptchaTaskProxyless.py @@ -4,7 +4,7 @@ import aiohttp import requests -from python3_anticaptcha.core.config import APP_KEY, create_task_url, get_sync_result, get_async_result +from python3_anticaptcha.core.config import create_task_url, get_sync_result, get_async_result class FunCaptchaTaskProxyless: From c4f889b1d1219d7ef2f81618568cc7ad184f1e1a Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 30 Oct 2023 07:57:53 +0300 Subject: [PATCH 6/7] Update requirements.txt --- src/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requirements.txt b/src/requirements.txt index 954812f..20046b2 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,4 +1,4 @@ requests>=2.21.0 aiohttp==3.8.4 tenacity==8.* -pydantic==1.* +pydantic>=2.4.0 From f1a634d52032dda975485ac0d43d1f82f57537a9 Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 30 Oct 2023 07:58:14 +0300 Subject: [PATCH 7/7] Update requirements.txt --- src/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requirements.txt b/src/requirements.txt index 20046b2..c85a781 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,4 +1,4 @@ requests>=2.21.0 -aiohttp==3.8.4 +aiohttp>=3.7.4 tenacity==8.* pydantic>=2.4.0