to_stub

to_stub(func: Callable[..., Any] | FunctionWithRequirementsStr) -> str

Generate a stub for a function as a string

Parameters:
NameDescription
funcThe function to generate a stub for

Type: Callable[…, Any] | FunctionWithRequirementsStr
Returns:
TypeDescription
strstr: The stub for the function