(context: &'static Context)
| 401 | } |
| 402 | |
| 403 | pub(crate) fn init(context: &'static Context) { |
| 404 | PyProperty::extend_class(context, context.types.property_type); |
| 405 | |
| 406 | // This is a bit unfortunate, but this instance attribute overlaps with the |
| 407 | // class __doc__ string.. |
| 408 | extend_class!(context, context.types.property_type, { |
| 409 | "__doc__" => context.new_static_getset( |
| 410 | "__doc__", |
| 411 | context.types.property_type, |
| 412 | PyProperty::doc_getter, |
| 413 | PyProperty::doc_setter, |
| 414 | ), |
| 415 | }); |
| 416 | } |