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
Previously, storing "mysterious code" in common.arg_info was ok if nothing else was in
arg_info. However, when a type-hint is registered against a function, the slot in arg_info
is clobbered by the return type info. Previous tests for adding type-hints appeared correct
because they were only inspecting the Reflection of the function, which appeared correct.
Only when the function was invoked did it fail to locate the mysterious code, and assume
the function was a method and could be found in globals().handler_map (which would panic
because function handlers were not globally registered).
To fix this, remove mysterious code entirely, and store function handlers globally, alongside
methods and enums.
0 commit comments