mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-12 07:35:16 +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):
|
def visitModule(self, mod):
|
||||||
depth = 0
|
depth = 0
|
||||||
self.emit(
|
self.emit(
|
||||||
"pub fn extend_module_nodes(vm: &VirtualMachine, module: &PyObject) {",
|
"pub fn extend_module_nodes(vm: &VirtualMachine, module: &Py<PyModule>) {",
|
||||||
depth,
|
depth,
|
||||||
)
|
)
|
||||||
self.emit("extend_module!(vm, module, {", depth + 1)
|
self.emit("extend_module!(vm, module, {", depth + 1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue