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
For symmetry with @initialize
Check - not redundant with result_callback on an initialize?
The text was updated successfully, but these errors were encountered:
You can currently do something like this, but its very awkward:
class Command(TyperCommand): def finalize(self, **kwargs): pass @initialize(result_callback=finalize) def init(self): pass @command() def cmd(self): return self
Or this for chainable commands:
class Command(TyperCommand, chain=True): @staticmethod def finalize(result, **kwargs): self = result[0] @initialize(result_callback=finalize) def init(self): pass @command() def cmd(self): return self
Would prefer to be able to do something like:
class Command(TyperCommand, chain=True|False): @finalize() def finalize(self, results): pass @initialize() def init(self): pass @command(): def cmd(self): return self
Sorry, something went wrong.
bckohan
No branches or pull requests
For symmetry with @initialize
Check - not redundant with result_callback on an initialize?
The text was updated successfully, but these errors were encountered: