Skip to content

Commit

Permalink
remove unnecessary function bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed Sep 6, 2022
1 parent 1ed771f commit 22b67a2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/micropython-stubs/micropython.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ Fun = TypeVar("Fun", bound=Callable[..., Any])

def const(x: int) -> int:
"Emulate making a constant"
return x

def native(f: Fun) -> Fun:
"Emulate making a native"
return f

def viper(f: Fun) -> NoReturn:
"User is attempting to use a viper code emitter"
raise SyntaxError("invalid micropython decorator")

def asm_thumb(f: Fun) -> NoReturn:
"User is attempting to use an inline assembler"
raise SyntaxError("invalid micropython decorator")

0 comments on commit 22b67a2

Please sign in to comment.