mirror of
https://github.com/micropython/micropython.git
synced 2025-09-06 01:40:34 +02:00
Added missing decorator
@@ -398,6 +398,7 @@ The conversion of the return value back to `builtins.int` is done automatically.
|
|||||||
|
|
||||||
If the value returned by the function is any other object, you do not need a type hint. You can, however, use `object` as return type hint:
|
If the value returned by the function is any other object, you do not need a type hint. You can, however, use `object` as return type hint:
|
||||||
```py
|
```py
|
||||||
|
@micropython.viper
|
||||||
def function_returns_object(x)->object:
|
def function_returns_object(x)->object:
|
||||||
return x
|
return x
|
||||||
h = function_returns_object("a string")
|
h = function_returns_object("a string")
|
||||||
|
Reference in New Issue
Block a user