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
The dynamic dispatcher is not filling default values for parameters on callbacks.
from statemachine import State from statemachine import StateMachine class XMachine(StateMachine): initial = State(initial=True, enter="enter_with_default_value") test = initial.to.itself() def enter_with_default_value(self, value: int = 42): assert value == 42, value XMachine()
Raises:
assert value == 42, value ^^^^^^^^^^^ AssertionError: None
Development notes: Migrate dispatcher.py to inspect.signature that has a nicer API instead of the currently inspect.getfullargspec.
dispatcher.py
The text was updated successfully, but these errors were encountered:
fix: Dynamic dispatch on methods with default parameters. Closes #341
6c227f5
e14b8e8
cb28828
fgmacedo
No branches or pull requests
Description
The dynamic dispatcher is not filling default values for parameters on callbacks.
Raises:
Development notes: Migrate
dispatcher.py
to inspect.signature that has a nicer API instead of the currently inspect.getfullargspec.The text was updated successfully, but these errors were encountered: