Skip to content

Commit

Permalink
Update serializer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiDrang committed Oct 30, 2023
1 parent 76bfc5c commit 36369af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python3_capsolver/core/serializer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, List, Optional
from typing import Any, Dict, List, Literal, Optional

from pydantic import Field, BaseModel, conint

Expand All @@ -20,7 +20,7 @@ class TaskSer(BaseModel):


class RequestCreateTaskSer(PostRequestSer):
appId: str = Field(APP_ID, description="AppID", const=True)
appId: Literal[APP_ID] = APP_ID


class RequestGetTaskResultSer(PostRequestSer):
Expand Down

0 comments on commit 36369af

Please sign in to comment.