mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Fix objset compilation error caused by merge race.
This commit is contained in:
1 parent
cac9da4c35
commit
17b816fbf8
1 file changed
+2
@@ -86,11 +86,13 @@ fn create_set(
|
||||
elements: RefCell::new(elements),
|
||||
},
|
||||
PySet::class(vm),
|
||||
None,
|
||||
))
|
||||
} else if objtype::issubclass(&cls, &vm.ctx.frozenset_type()) {
|
||||
Ok(PyObject::new(
|
||||
PyFrozenSet { elements: elements },
|
||||
PyFrozenSet::class(vm),
|
||||
None,
|
||||
))
|
||||
} else {
|
||||
Err(vm.new_type_error(format!("{} is not a subtype of set or frozenset", cls)))
|
||||
|
||||
Reference in new issue
Block a user