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):
|
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…
Reference in New Issue