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: