We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is a minimal Shiny core app where the __name__ of a parameter annotation via inspect.signature() is what one would expect (int in this case):
__name__
inspect.signature()
int
import inspect from shiny import App, ui def foo(x: int): return x + 1 x = inspect.signature(foo).parameters["x"] res = x.annotation.__name__ app_ui = ui.page_fixed(res) app = App(ui=app_ui, server=None)
However, doing the same with Shiny express results in an error:
import inspect import shiny.express def foo(x: int): return x + 1 x = inspect.signature(foo).parameters["x"] x.annotation.__name__
RuntimeError: 'str' object has no attribute '__name__'
For context, this means stuff like litellm.utils.function_to_dict won't work in express.
litellm.utils.function_to_dict
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here is a minimal Shiny core app where the
__name__
of a parameter annotation viainspect.signature()
is what one would expect (int
in this case):However, doing the same with Shiny express results in an error:
For context, this means stuff like
litellm.utils.function_to_dict
won't work in express.The text was updated successfully, but these errors were encountered: