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
Many native builtins implemented in C do not have native signatures. Thus when we call inspect.signature is yields a ValueError. Seems like these cases e.g. boolshould probably be falling back to inspectingfn.call`
enum.Enum implementations raise AttributeError because cls.__signature__ is pre-populated with a callable method who's purpose eludes me but apparently inspect.signature gained support for dealing with at some point, because there was a bug report about it.
Description
Many native builtins implemented in C do not have native signatures. Thus when we call
inspect.signature
is yields a ValueError. Seems like these cases e.g.
boolshould probably be falling back to inspecting
fn.call`enum.Enum
implementations raiseAttributeError
becausecls.__signature__
is pre-populated with a callable method who's purpose eludes me but apparentlyinspect.signature
gained support for dealing with at some point, because there was a bug report about it.We could do something to the effect of
because i think this case is actually just a weird enum-specific nonsense special case.
URL to code causing the issue
No response
MCVE
# Your MCVE code here
Steps to reproduce
Screenshots
"In the format of:
![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)
"Logs
No response
Package Version
latest
Platform
The text was updated successfully, but these errors were encountered: