Skip to content

Commit

Permalink
Be less strict with types
Browse files Browse the repository at this point in the history
  • Loading branch information
EricTendian committed Nov 9, 2023
1 parent ac56a85 commit 8caec5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/schemas.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Tuple
from pydantic import BaseModel

from .geocoding import GeoResponse
from .transcript import RawTranscript


class CallBase(BaseModel):
Expand All @@ -14,15 +14,15 @@ class CallCreate(CallBase):


class CallUpdate(CallBase):
raw_transcript: RawTranscript
raw_transcript: list[Tuple]
geo: GeoResponse | None


class Call(CallBase):
id: int
raw_metadata: dict
raw_audio_url: str
raw_transcript: RawTranscript | None
raw_transcript: list[Tuple] | None
geo: GeoResponse | None

class Config:
Expand Down

0 comments on commit 8caec5e

Please sign in to comment.