Skip to content

Commit

Permalink
make compatible with Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkahan committed Apr 30, 2024
1 parent e90726b commit ab25c71
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/vonage/ncco_builder/connect_endpoints.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pydantic import BaseModel, HttpUrl, AnyUrl, constr, field_serializer, Field
from typing import Dict, Annotated
from typing_extensions import Literal
from typing import Dict
from typing_extensions import Annotated, Literal


class ConnectEndpoints:
Expand Down Expand Up @@ -29,7 +29,10 @@ class WebsocketEndpoint(Endpoint):
type: Literal['websocket'] = 'websocket'

uri: AnyUrl
contentType: Annotated[Literal['audio/l16;rate=16000', 'audio/l16;rate=8000'], Field(serialization_alias='content-type')]
contentType: Annotated[
Literal['audio/l16;rate=16000', 'audio/l16;rate=8000'],
Field(serialization_alias='content-type'),
]
headers: dict = None

@field_serializer('uri')
Expand Down

0 comments on commit ab25c71

Please sign in to comment.