-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
-
Near
, we should inspect thepy-shiny/shiny/reactive/_reactives.py
Lines 254 to 257 in 21c2d30
# The CalcAsync subclass will pass in an async function, but it tells the # static type checker that it's synchronous. wrap_async() is smart -- if is # passed an async function, it will not change it. self._fn: CalcFunctionAsync[T] = _utils.wrap_async(fn) fnto verify that it has not arguments. (O(1) when running the app) -
Near
, we should inspect thepy-shiny/shiny/render/renderer/_renderer.py
Lines 164 to 165 in 21c2d30
# Set value function with extra meta information self.fn = AsyncValueFn(_fn) fnto 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.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers