From cff363597af738c7c7f4e2b439230f0f0f736d1e Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 29 Aug 2022 14:34:28 -0400 Subject: [PATCH] Common: Annotate HardwareID as a TypeAlias --- monkey/common/types.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monkey/common/types.py b/monkey/common/types.py index 6063611c9..1de247ad4 100644 --- a/monkey/common/types.py +++ b/monkey/common/types.py @@ -1,3 +1,5 @@ +from typing import TypeAlias + from pydantic import PositiveInt -HardwareID = PositiveInt +HardwareID: TypeAlias = PositiveInt