Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodbare committed Dec 4, 2023
1 parent 7dc2ae5 commit 0d31a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nuclia/lib/nua_responses.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re
from datetime import datetime
from enum import Enum
from typing import Dict, List, Optional
from typing import Dict, List, Optional, cast

from pydantic import BaseModel, ConstrainedStr, Field

Expand Down Expand Up @@ -194,7 +194,7 @@ class LearningConfig(BaseModel):


class PushPayload(BaseModel):
kbid: Optional[RestrictedIDString] = "default"
kbid: Optional[RestrictedIDString] = cast(RestrictedIDString, "default")
uuid: Optional[RestrictedIDString] = None

slug: Optional[str] = None
Expand Down

0 comments on commit 0d31a7f

Please sign in to comment.