Problem
with_annotated and with_argparser decorators do not work with the builtin staticmethod decorator.
How to reproduce
class Failed(Cmd):
@with_annotated
@staticmethod
def do_a(...) -> None:
...
@with_argparser
@staticmethod
def do_b(...) -> None:
...
Expected behavior
Both decorated methods can be declared without a self argument by using the staticmethod decorator for at least one order of decorators.
Actual behavior
Calling booth methods fail with different errors.
Problem
with_annotatedandwith_argparserdecorators do not work with the builtinstaticmethoddecorator.How to reproduce
Expected behavior
Both decorated methods can be declared without a self argument by using the
staticmethoddecorator for at least one order of decorators.Actual behavior
Calling booth methods fail with different errors.