mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
add missing SlotConstructor keyword on impl
Signed-off-by: snowapril <sinjihng@gmail.com>
This commit is contained in:
@@ -52,7 +52,7 @@ impl SlotConstructor for PyGenericAlias {
|
||||
}
|
||||
}
|
||||
|
||||
#[pyimpl(with(Hashable, SlotGetattro), flags(BASETYPE))]
|
||||
#[pyimpl(with(Hashable, SlotConstructor, SlotGetattro), flags(BASETYPE))]
|
||||
impl PyGenericAlias {
|
||||
pub fn new(origin: PyTypeRef, args: PyObjectRef, vm: &VirtualMachine) -> Self {
|
||||
let args: PyTupleRef = if let Ok(tuple) = PyTupleRef::try_from_object(vm, args.clone()) {
|
||||
|
||||
Reference in New Issue
Block a user