diff --git a/src/micropython-stubs/micropython.pyi b/src/micropython-stubs/__init__.pyi similarity index 94% rename from src/micropython-stubs/micropython.pyi rename to src/micropython-stubs/__init__.pyi index 33dd6a9..1252e2c 100644 --- a/src/micropython-stubs/micropython.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(x: int) -> int: +def const(x: T) -> T: "Emulate making a constant" def native(f: Fun) -> Fun: