]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Fix typing for 3.8
authorGeorge Waters <gwatersdev@gmail.com>
Mon, 14 Jul 2025 15:38:59 +0000 (11:38 -0400)
committerGeorge Waters <gwatersdev@gmail.com>
Mon, 14 Jul 2025 15:41:45 +0000 (11:41 -0400)
src/micropython-stubs/__init__.pyi

index 5026b979322a398a523ae4c86feb8b1a27479667..1252e2c675fcb188d38c7baaee7fef706dee06e3 100644 (file)
@@ -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: