From 4cef09540bcdbcedd71081d338d2656427b6a5d8 Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Sat, 8 Jul 2023 12:11:55 -0400 Subject: [PATCH] sdk: fix typing (#938) --- sdk/types/scrypted_python/scrypted_sdk/other.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/types/scrypted_python/scrypted_sdk/other.py b/sdk/types/scrypted_python/scrypted_sdk/other.py index de61fc9fb..4b4b1fc81 100644 --- a/sdk/types/scrypted_python/scrypted_sdk/other.py +++ b/sdk/types/scrypted_python/scrypted_sdk/other.py @@ -1,7 +1,7 @@ from __future__ import annotations from enum import Enum -from typing import AbstractSet, Any, Callable, Literal +from typing import AbstractSet, Any, Callable, Literal, Union try: from typing import TypedDict except: @@ -9,7 +9,7 @@ except: SettingValue = str EventListener = Callable[[Any, Any, Any], None] -VibratePattern = int | list[int] +VibratePattern = Union[int, list[int]] class Console: