MCPcopy
hub / github.com/pallets/flask / _endpoint_from_view_func

Function _endpoint_from_view_func

src/flask/sansio/scaffold.py:701–706  ·  view source on GitHub ↗

Internal helper that returns the default endpoint for a given function. This always is the function name.

(view_func: ft.RouteCallable)

Source from the content-addressed store, hash-verified

699
700
701def _endpoint_from_view_func(view_func: ft.RouteCallable) -> str:
702 """Internal helper that returns the default endpoint for a given
703 function. This always is the function name.
704 """
705 assert view_func is not None, "expected view func if endpoint is not provided."
706 return view_func.__name__
707
708
709def _find_package_path(import_name: str) -> str:

Callers 2

add_url_ruleMethod · 0.85
add_url_ruleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected