Skip to content

Commit dd1d8d5

Browse files
purdeaandreiwhitequark
authored andcommitted
docs/stdlib/data: improved wording describing example that is shape-like
The RGBLayout class itself is not shapelike, only instances of this class are shape-like. (i.e. `Shape.cast(RGBLayout)` would fail) It's worth being precise especially because in some cases the classes themselves are shape-like, for example in the case of Enums, the classes that inherit from Enum are shape-like.
1 parent 69faf77 commit dd1d8d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/stdlib/data.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ In case the data has related operations or transformations, :class:`View` can be
155155
def brightness(self):
156156
return (self.red + self.green + self.blue)[-8:]
157157

158-
Here, the :py:`RGBLayout` class itself is :ref:`shape-like <lang-shapelike>` and can be used anywhere a shape is accepted. When a :class:`Signal` is constructed with this layout, the returned value is wrapped in an :py:`RGBView`:
158+
Here, an instance of the :py:`RGBLayout` class itself is :ref:`shape-like <lang-shapelike>` and can be used anywhere a shape is accepted. When a :class:`Signal` is constructed with this layout, the returned value is wrapped in an :py:`RGBView`:
159159

160160
.. doctest::
161161

0 commit comments

Comments
 (0)