X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/d92dc8084a38204adb5cf0453ba789f4226039ae..0413de50774a5b1173d84447433de9e255cba16e:/src/micropython-stubs/__init__.pyi 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: