src/flask/scaffold.py
def _endpoint_from_view_func(view_func: t.Callable) -> str:
    """Internal helper that returns the default endpoint for a given
    function.  This always is the function name.
    """
    assert view_func is not None, "expected view func if endpoint is not provided."
    return view_func.__name__
Internal helper that returns the default endpoint for a given
    function.  This always is the function name.
    
Internal helper that returns the default endpoint for a given
function.  This always is the function name.
Internal helper that returns the default endpoint for a given function . This always is the function name .
def _endpoint_from_view_func(view_func: t.Callable) -> str:
    assert view_func is not None, "expected view func if endpoint is not provided."
    return view_func.__name__
def _endpoint_from_view_func ( view_func : t . Callable ) -> str : assert view_func is not None , "expected view func if endpoint is not provided." return view_func . __name__
Internal helper that returns the default endpoint for a given
function.
Internal helper that returns the default endpoint for a given function .
"""Internal helper that returns the default endpoint for a given
    function.  This always is the function name.
    """
view_func
t.Callable