You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Perhaps I don't want to call dispatch_command(dispatcher) and pass the choice of function as a string becase I want to define other completely different commands.)
This will fail because the partial objects have no __annotations__, even though inspect.signature will happily (and very reasonably) use the annotations of the wrapped function. (The partial objects also have no __name__ and for that there isn't really another choice that setting it explicitly.) It would be nice if argh did the same here, at least when inspect.signature is available.
The text was updated successfully, but these errors were encountered:
Consider the following case:
(Perhaps I don't want to call
dispatch_command(dispatcher)
and pass the choice of function as a string becase I want to define other completely different commands.)This will fail because the partial objects have no
__annotations__
, even thoughinspect.signature
will happily (and very reasonably) use the annotations of the wrapped function. (The partial objects also have no__name__
and for that there isn't really another choice that setting it explicitly.) It would be nice ifargh
did the same here, at least wheninspect.signature
is available.The text was updated successfully, but these errors were encountered: