From c4ca8bb9d4fc7cbcf881c8b0b36dc7ca683457c4 Mon Sep 17 00:00:00 2001 From: bixb922 <70152274+bixb922@users.noreply.github.com> Date: Thu, 2 May 2024 09:34:58 -0400 Subject: [PATCH] Added missing decorator --- Improving-performance-with-Viper-code.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Improving-performance-with-Viper-code.md b/Improving-performance-with-Viper-code.md index d731b58..4a21d0c 100644 --- a/Improving-performance-with-Viper-code.md +++ b/Improving-performance-with-Viper-code.md @@ -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: ```py +@micropython.viper def function_returns_object(x)->object: return x h = function_returns_object("a string")