Skip to content
New issue

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

Allow Module() server functions to return a value and have custom arguments #106

Closed
wants to merge 1 commit into from

Conversation

cpsievert
Copy link
Collaborator

Closes #102
Closes #103

…nd have custom arguments (and also allow UI functions to have keyword arguments)
@@ -134,14 +134,12 @@ class Module:
def __init__(
self,
ui: Callable[..., TagChildArg],
server: Callable[[ModuleInputs, ModuleOutputs, ModuleSession], None],
server: Callable[..., Any],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm aware this leads to type information loss, but I'm not sure if it's possible to type this the way that we want to??

@cpsievert
Copy link
Collaborator Author

This should end up getting addressed by #100

@cpsievert cpsievert closed this Jun 1, 2022
@cpsievert cpsievert deleted the ModuleParams branch June 14, 2022 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant