Skip to content

Commit 85bf3d0

Browse files
committed
stub checker does not approve of shared vectorshape properties
1 parent 48ea81e commit 85bf3d0

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

shared-bindings/vectorio/VectorShape.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ vectorio_draw_protocol_impl_t vectorio_vector_shape_draw_protocol_impl = {
8080
};
8181

8282

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+
//
8687
STATIC mp_obj_t vectorio_vector_shape_obj_get_x(mp_obj_t wrapper_shape) {
8788
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
8889
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 = {
111112
};
112113

113114

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+
//
117118
STATIC mp_obj_t vectorio_vector_shape_obj_get_y(mp_obj_t wrapper_shape) {
118119
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
119120
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 = {
142143
};
143144

144145

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+
//
148149
STATIC mp_obj_t vectorio_vector_shape_obj_get_pixel_shader(mp_obj_t wrapper_shape) {
149150
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
150151
const vectorio_draw_protocol_t *draw_protocol = mp_proto_get(MP_QSTR_protocol_draw, wrapper_shape);

0 commit comments

Comments
 (0)