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
Slightly inspired by a planned feature in Oblarg's Oblog.
Idea: Add a convenient way of calling a setter over NT to magicbot.
Strawman:
feedback
set_
tunable
Usage would look like this:
class Component: @configurable def set_p(self, value) -> None: ...
An alternative interface may involve decorating with a method on a tunable:
class Component: p = tunable(1) @p.setter def set_p(self, value: float) -> None: ...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Slightly inspired by a planned feature in Oblarg's Oblog.
Idea: Add a convenient way of calling a setter over NT to magicbot.
Strawman:
feedback
decorator, aset_
prefix will be stripped from the name used for NT keys.tunable
andfeedback
.Usage would look like this:
An alternative interface may involve decorating with a method on a
tunable
:The text was updated successfully, but these errors were encountered: