From 69b20962a4a509489a3d805c64de2c76de60e67c Mon Sep 17 00:00:00 2001 From: 650elx Date: Wed, 20 Mar 2024 01:25:30 +0100 Subject: [PATCH] feat(Voice): type hint for Destination type added --- sinch/domains/voice/models/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sinch/domains/voice/models/__init__.py b/sinch/domains/voice/models/__init__.py index 692850df..20e461b8 100644 --- a/sinch/domains/voice/models/__init__.py +++ b/sinch/domains/voice/models/__init__.py @@ -1,5 +1,5 @@ from dataclasses import dataclass -from typing import TypedDict +from typing import TypedDict, Literal @dataclass @@ -25,7 +25,7 @@ class ApplicationNumber: class Destination(TypedDict): - type: str + type: Literal["number", "username"] endpoint: str