You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would rather err on the side of no-arguments than no required arguments.
I think it's good to prevent people from doing obviously wrong things. But I almost always regret disallowing a perfectly okay thing in the name of an easy error message. It's a hard balance. In this case it wouldn't be the worst to need to write a wrapper function or use a lambda, which would get you around the no arguments requirement if needed.
Near
py-shiny/shiny/reactive/_reactives.py
Lines 254 to 257 in 21c2d30
fn
to verify that it has not arguments. (O(1) when running the app)Near
py-shiny/shiny/render/renderer/_renderer.py
Lines 164 to 165 in 21c2d30
fn
to verify that it has no arguments. (O(1) when running the app)Motivation: Provide clear errors to users who do not enable type checking of their common mistake.
The text was updated successfully, but these errors were encountered: