From ab25c712a697de16c85cb78f65e4a98f25fc67eb Mon Sep 17 00:00:00 2001 From: maxkahan Date: Tue, 30 Apr 2024 03:18:17 +0100 Subject: [PATCH] make compatible with Python 3.8 --- src/vonage/ncco_builder/connect_endpoints.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/vonage/ncco_builder/connect_endpoints.py b/src/vonage/ncco_builder/connect_endpoints.py index 82a35f76..b83e3fd0 100644 --- a/src/vonage/ncco_builder/connect_endpoints.py +++ b/src/vonage/ncco_builder/connect_endpoints.py @@ -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: @@ -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')