]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
remove unnecessary function bodies micropython-pyi
authorJeff Epler <jepler@gmail.com>
Tue, 6 Sep 2022 23:20:46 +0000 (18:20 -0500)
committerJeff Epler <jepler@gmail.com>
Tue, 6 Sep 2022 23:20:46 +0000 (18:20 -0500)
src/micropython-stubs/micropython.pyi

index 7ae9330ab1f77444dcf50af07870f6e0e7d9d6a2..33dd6a9821ecd0dbe297d312f6743480a89aab32 100644 (file)
@@ -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")