We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 883a884 commit 4b353eaCopy full SHA for 4b353ea
1 file changed
crates/vm/src/protocol/object.rs
@@ -707,6 +707,10 @@ impl PyObject {
707
{
708
return class_getitem.call((needle,), vm);
709
}
710
+ return Err(vm.new_type_error(format!(
711
+ "type '{}' is not subscriptable",
712
+ self.downcast_ref::<PyType>().unwrap().name()
713
+ )));
714
715
Err(vm.new_type_error(format!("'{}' object is not subscriptable", self.class())))
716
0 commit comments