@@ -14,6 +14,7 @@ use crate::obj::objfloat;
14
14
use crate :: obj:: objframe;
15
15
use crate :: obj:: objfunction;
16
16
use crate :: obj:: objgenerator;
17
+ use crate :: obj:: objgetset;
17
18
use crate :: obj:: objint;
18
19
use crate :: obj:: objiter;
19
20
use crate :: obj:: objlist;
@@ -94,6 +95,7 @@ pub struct TypeZoo {
94
95
pub method_descriptor_type : PyClassRef ,
95
96
pub property_type : PyClassRef ,
96
97
pub readonly_property_type : PyClassRef ,
98
+ pub getset_type : PyClassRef ,
97
99
pub module_type : PyClassRef ,
98
100
pub namespace_type : PyClassRef ,
99
101
pub bound_method_type : PyClassRef ,
@@ -125,6 +127,7 @@ impl TypeZoo {
125
127
let method_descriptor_type = create_type ( "method_descriptor" , & type_type, & object_type) ;
126
128
let property_type = create_type ( "property" , & type_type, & object_type) ;
127
129
let readonly_property_type = create_type ( "readonly_property" , & type_type, & object_type) ;
130
+ let getset_type = create_type ( "getset_descriptor" , & type_type, & object_type) ;
128
131
let super_type = create_type ( "super" , & type_type, & object_type) ;
129
132
let weakref_type = create_type ( "ref" , & type_type, & object_type) ;
130
133
let weakproxy_type = create_type ( "weakproxy" , & type_type, & object_type) ;
@@ -220,6 +223,7 @@ impl TypeZoo {
220
223
mappingproxy_type,
221
224
property_type,
222
225
readonly_property_type,
226
+ getset_type,
223
227
generator_type,
224
228
module_type,
225
229
namespace_type,
@@ -381,6 +385,7 @@ pub fn initialize_types(context: &PyContext) {
381
385
objbytes:: init ( & context) ;
382
386
objbytearray:: init ( & context) ;
383
387
objproperty:: init ( & context) ;
388
+ objgetset:: init ( & context) ;
384
389
objmemory:: init ( & context) ;
385
390
objstr:: init ( & context) ;
386
391
objrange:: init ( & context) ;
0 commit comments