From 0413de50774a5b1173d84447433de9e255cba16e Mon Sep 17 00:00:00 2001 From: George Waters Date: Mon, 14 Jul 2025 11:38:59 -0400 Subject: [PATCH] Fix typing for 3.8 --- src/micropython-stubs/__init__.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/micropython-stubs/__init__.pyi b/src/micropython-stubs/__init__.pyi index 5026b97..1252e2c 100644 --- a/src/micropython-stubs/__init__.pyi +++ b/src/micropython-stubs/__init__.pyi @@ -11,8 +11,9 @@ from typing import Callable, TypeVar, Any, NoReturn Fun = TypeVar("Fun", bound=Callable[..., Any]) +T = TypeVar("T") -def const[T](x: T) -> T: +def const(x: T) -> T: "Emulate making a constant" def native(f: Fun) -> Fun: -- 2.49.0