Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upd docs #93

Merged
merged 7 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/python3_anticaptcha/FunCaptchaTaskProxyless.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/python3_anticaptcha/core/serializer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict
from typing import Dict, Literal

from pydantic import Field, BaseModel, constr

Expand Down Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requests>=2.21.0
aiohttp==3.*
aiohttp>=3.7.4
tenacity==8.*
pydantic==1.*
pydantic>=2.4.0
Loading