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):