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
...
# Check that fn signature matches arg_specfn_args=inspect.getfullargspec(fn).argsn_fn_args=len(fn_args)
ifisinstance(fn, types.MethodType):
n_fn_args-=1# subtract 1 for bound self argparsed_args=parse_args_spec(arg_spec)
iflen(parsed_args) !=n_fn_args:
raiseEventFnArgMismatch(
"The number of arguments accepted by "f"{fn} ({n_fn_args}) "
...
f"{[str(v) for v in parsed_args]}\n""See https://reflex.dev/docs/events/event-arguments/"
)
...
This code will raise EventFnArgMismatch when we pass an object of type EventSpec because it don't check default argument !
Describe the bug
In event.call_event_fn release 0.6.0
This code will raise EventFnArgMismatch when we pass an object of type EventSpec because it don't check default argument !
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Not raising the exception EventFnArgMismatch !
Specifics (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: