Skip to content

Commit d6b2420

Browse files
authored
Uncomment not_is_async_callable()
1 parent eacb07b commit d6b2420

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shiny/_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,10 @@ def is_async_callable(
362362
return False
363363

364364

365-
# def not_is_async_callable(
366-
# obj: Callable[P, T] | Callable[P, Awaitable[T]]
367-
# ) -> TypeGuard[Callable[P, T]]:
368-
# return not is_async_callable(obj)
365+
def not_is_async_callable(
366+
obj: Callable[P, T] | Callable[P, Awaitable[T]]
367+
) -> TypeGuard[Callable[P, T]]:
368+
return not is_async_callable(obj)
369369

370370

371371
# See https://stackoverflow.com/a/59780868/412655 for an excellent explanation

0 commit comments

Comments
 (0)