From a01cf273fef41c24b28465ff60fa0c796d924542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Tue, 27 Feb 2024 12:58:43 +0100 Subject: [PATCH] fixes render_in_frontend function --- src/pydase/utils/serializer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydase/utils/serializer.py b/src/pydase/utils/serializer.py index f4bfa7f..52eb937 100644 --- a/src/pydase/utils/serializer.py +++ b/src/pydase/utils/serializer.py @@ -60,7 +60,7 @@ def render_in_frontend(func: Callable[..., Any]) -> bool: It checks if the "@frontend" decorator was used or the method is a coroutine.""" - if inspect.iscoroutine(func): + if inspect.iscoroutinefunction(func): return True try: