Internal helper that returns the default endpoint for a given function. This always is the function name.
(view_func: ft.RouteCallable)
| 699 | |
| 700 | |
| 701 | def _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 | |
| 709 | def _find_package_path(import_name: str) -> str: |
no outgoing calls
no test coverage detected