gen_function_from_python!() { /* proc-macro */ }
Expand description
Generate PyFunctionInfo from Python stub string
This proc-macro parses Python stub syntax and generates a PyFunctionInfo structure.
It should be used inside inventory::submit!
blocks.
ⓘ
submit! {
gen_function_from_python! {
r#"
import collections.abc
import typing
def fn_override_type(cb: collections.abc.Callable[[str], typing.Any]) -> collections.abc.Callable[[str], typing.Any]: ...
"#
}
}