mirror of https://github.com/astral-sh/ruff
module objects' type as PyModule
This commit is contained in:
parent
6d6155413b
commit
a9f4b59f40
|
|
@ -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…
Reference in New Issue