From: George Waters Date: Mon, 14 Jul 2025 15:38:59 +0000 (-0400) Subject: Fix typing for 3.8 X-Git-Tag: 8.63.0~2^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/0413de50774a5b1173d84447433de9e255cba16e?hp=d92dc8084a38204adb5cf0453ba789f4226039ae Fix typing for 3.8 --- 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: