Method: flask.scaffold._endpoint_from_view_func
Calls: 364, Exceptions: 0, Paths: 1Back
Path 1: 364 calls (1.0)
View.as_view.
'index' (159) 'error' (10) 'view' (10) 'bp_index' (8) 'hello' (8) 'bp_error' (7) 'methodview' (7) 'do_abort' (5) 'index2' (4) 'fail' (4)
1def _endpoint_from_view_func(view_func: t.Callable) -> str:
2 """Internal helper that returns the default endpoint for a given
3 function. This always is the function name.
4 """
5 assert view_func is not None, "expected view func if endpoint is not provided."
6 return view_func.__name__