mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Don't define object.__class_getitem__
This commit is contained in:
@@ -229,11 +229,6 @@ impl PyBaseObject {
|
||||
#[pyclassmethod(magic)]
|
||||
fn init_subclass(_cls: PyTypeRef) {}
|
||||
|
||||
#[pyclassmethod(magic)]
|
||||
fn class_getitem(cls: PyTypeRef, _args: FuncArgs) -> PyObjectRef {
|
||||
cls.into_object()
|
||||
}
|
||||
|
||||
#[pymethod(magic)]
|
||||
pub fn dir(obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyList> {
|
||||
let attributes: PyAttributes = obj.class().get_attributes();
|
||||
|
||||
Reference in New Issue
Block a user