mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-17 09:29:26 +01:00
fixes render_in_frontend function
This commit is contained in:
@@ -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."""
|
It checks if the "@frontend" decorator was used or the method is a coroutine."""
|
||||||
|
|
||||||
if inspect.iscoroutine(func):
|
if inspect.iscoroutinefunction(func):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user