Skip to content

Commit ab25c71

Browse files
committed
make compatible with Python 3.8
1 parent e90726b commit ab25c71

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/vonage/ncco_builder/connect_endpoints.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from pydantic import BaseModel, HttpUrl, AnyUrl, constr, field_serializer, Field
2-
from typing import Dict, Annotated
3-
from typing_extensions import Literal
2+
from typing import Dict
3+
from typing_extensions import Annotated, Literal
44

55

66
class ConnectEndpoints:
@@ -29,7 +29,10 @@ class WebsocketEndpoint(Endpoint):
2929
type: Literal['websocket'] = 'websocket'
3030

3131
uri: AnyUrl
32-
contentType: Annotated[Literal['audio/l16;rate=16000', 'audio/l16;rate=8000'], Field(serialization_alias='content-type')]
32+
contentType: Annotated[
33+
Literal['audio/l16;rate=16000', 'audio/l16;rate=8000'],
34+
Field(serialization_alias='content-type'),
35+
]
3336
headers: dict = None
3437

3538
@field_serializer('uri')

0 commit comments

Comments
 (0)