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.
If you merge my part2 PR, this is partly solved because I split the signature inspection from the return type inspection!
Can be*
@PhilipVinc I'm going over your PR as we speak! Planning to leave a review before the end of the night. :)