signature¶
A closure returning the method’s signature.
Declaration
var signature: (
() throws -> Signature
)?
Discussion
It must not contain self``or ``cls in any case. If no signature is provided, (*args, **kwargs) will be the default.
ArgumentParser requires methods to have a signature with explicit arguments for parsing.