plum
plum copied to clipboard
Replace `inspect.signature` with `beartype._util.func.arg.utilfuncargiter.iter_func_args`
What the title says, for the sake of speed!
The one missing feature is that inspect.signature
gives the return type too, whereas iter_func_args
just loops over the arguments, so that's the only wrinkle that would need to be ironed out.