(
vm: &VirtualMachine,
func_name: impl AsPyStr<'a>,
args: impl IntoFuncArgs,
)
| 17 | } |
| 18 | |
| 19 | pub fn call_typing_func_object<'a>( |
| 20 | vm: &VirtualMachine, |
| 21 | func_name: impl AsPyStr<'a>, |
| 22 | args: impl IntoFuncArgs, |
| 23 | ) -> PyResult { |
| 24 | let module = vm.import("typing", 0)?; |
| 25 | let func = module.get_attr(func_name.as_pystr(&vm.ctx), vm)?; |
| 26 | func.call(args, vm) |
| 27 | } |
| 28 | |
| 29 | #[pymodule(name = "_typing", with(super::typevar::typevar))] |
| 30 | pub(crate) mod decl { |
no test coverage detected