nextpyp.client.gen.optional_map#
- nextpyp.client.gen.optional_map(val, func)#
map the optional type, so we can avoid using intermediate variables and simplify the code generator
- Return type:
Optional[TypeVar(R)]- Parameters:
val (T | None) –
func (Callable[[T], R]) –