Skip to content

Commit 36369af

Browse files
author
Andrei
committed
Update serializer.py
1 parent 76bfc5c commit 36369af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/python3_capsolver/core/serializer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict, List, Optional
1+
from typing import Any, Dict, List, Literal, Optional
22

33
from pydantic import Field, BaseModel, conint
44

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

2121

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

2525

2626
class RequestGetTaskResultSer(PostRequestSer):

0 commit comments

Comments
 (0)