Searched refs:MetaclassOverride (Results 1 – 2 of 2) sorted by relevance
206 assert type(m.MetaclassOverride).__name__ == "type"208 assert m.MetaclassOverride.readonly == 1210 type(m.MetaclassOverride.__dict__["readonly"]).__name__215 m.MetaclassOverride.readonly = 2216 assert m.MetaclassOverride.readonly == 2217 assert isinstance(m.MetaclassOverride.__dict__["readonly"], int)
283 struct MetaclassOverride { }; in TEST_SUBMODULE() struct284 py::class_<MetaclassOverride>(m, "MetaclassOverride", py::metaclass((PyObject *) &PyType_Type)) in TEST_SUBMODULE()