plum icon indicating copy to clipboard operation
plum copied to clipboard

Replace `inspect.signature` with `beartype._util.func.arg.utilfuncargiter.iter_func_args`

Open wesselb opened this issue 2 years ago • 3 comments

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.

wesselb avatar Oct 13 '23 18:10 wesselb

If you merge my part2 PR, this is partly solved because I split the signature inspection from the return type inspection!

PhilipVinc avatar Oct 13 '23 19:10 PhilipVinc

Can be*

PhilipVinc avatar Oct 13 '23 19:10 PhilipVinc

@PhilipVinc I'm going over your PR as we speak! Planning to leave a review before the end of the night. :)

wesselb avatar Oct 13 '23 19:10 wesselb