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
methods don't get detected on is_function, then we assume that <object>.__class__.__name__ will give the right name (my_method on the example below) for it, but it actually gets the "method" name, which is wrong.
Discussion was done at https://gitter.im/encode/community. Bug was confirmed by @Kludex.
Description
methods don't get detected on
is_function
, then we assume that<object>.__class__.__name__
will give the right name (my_method on the example below) for it, but it actually gets the "method" name, which is wrong.Unexpected behaviour seem to originate from:
starlette/starlette/routing.py
Line 87 in e086fc2
Minimal example
Actual behavior
Value of
method_route.name
is"method"
.Expected behavior
Value of
method_route.name
is"my_method"
.It could also be
"MySpecialEndpointObject_my_method"
. Reason here is to prevent ambiguity.The text was updated successfully, but these errors were encountered: