@@ -80,9 +80,10 @@ vectorio_draw_protocol_impl_t vectorio_vector_shape_draw_protocol_impl = {
80
80
};
81
81
82
82
83
- //| x: int
84
- //| """X position of the center point of the shape in the parent."""
85
- //|
83
+ // Stub checker does not approve of these shared properties.
84
+ // x: int
85
+ // """X position of the center point of the shape in the parent."""
86
+ //
86
87
STATIC mp_obj_t vectorio_vector_shape_obj_get_x (mp_obj_t wrapper_shape ) {
87
88
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
88
89
const vectorio_draw_protocol_t * draw_protocol = mp_proto_get (MP_QSTR_protocol_draw , wrapper_shape );
@@ -111,9 +112,9 @@ const mp_obj_property_t vectorio_vector_shape_x_obj = {
111
112
};
112
113
113
114
114
- //| y: int
115
- //| """Y position of the center point of the shape in the parent."""
116
- //|
115
+ // y: int
116
+ // """Y position of the center point of the shape in the parent."""
117
+ //
117
118
STATIC mp_obj_t vectorio_vector_shape_obj_get_y (mp_obj_t wrapper_shape ) {
118
119
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
119
120
const vectorio_draw_protocol_t * draw_protocol = mp_proto_get (MP_QSTR_protocol_draw , wrapper_shape );
@@ -142,9 +143,9 @@ const mp_obj_property_t vectorio_vector_shape_y_obj = {
142
143
};
143
144
144
145
145
- //| pixel_shader: Union[displayio.ColorConverter, displayio.Palette]
146
- //| """The pixel shader of the shape."""
147
- //|
146
+ // pixel_shader: Union[displayio.ColorConverter, displayio.Palette]
147
+ // """The pixel shader of the shape."""
148
+ //
148
149
STATIC mp_obj_t vectorio_vector_shape_obj_get_pixel_shader (mp_obj_t wrapper_shape ) {
149
150
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
150
151
const vectorio_draw_protocol_t * draw_protocol = mp_proto_get (MP_QSTR_protocol_draw , wrapper_shape );
0 commit comments