Skip to content

Commit

Permalink
Merge pull request #93 from AndreiDrang/main
Browse files Browse the repository at this point in the history
Upd docs
  • Loading branch information
AndreiDrang committed Oct 30, 2023
2 parents 47603fb + f1a634d commit 25d42d2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
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

0 comments on commit 25d42d2

Please sign in to comment.