Merge pull request #991 from dunkmann00/micro-stubs
Make micropython.const accept any constant type
This commit is contained in:
commit
f79764b77c
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
Loading…
Reference in a new issue