mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-08 05:35:22 +00:00
module objects' type as PyModule
This commit is contained in:
parent
ce3cc2831e
commit
457cf8ba44
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ class ExtendModuleVisitor(EmitVisitor):
|
|||
def visitModule(self, mod):
|
||||
depth = 0
|
||||
self.emit(
|
||||
"pub fn extend_module_nodes(vm: &VirtualMachine, module: &PyObject) {",
|
||||
"pub fn extend_module_nodes(vm: &VirtualMachine, module: &Py<PyModule>) {",
|
||||
depth,
|
||||
)
|
||||
self.emit("extend_module!(vm, module, {", depth + 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue