Grammatical improvements in View documentation
This commit is contained in:
parent
5c2945bcd4
commit
4724943861
@ -201,7 +201,7 @@ class View:
|
|||||||
Raises
|
Raises
|
||||||
--------
|
--------
|
||||||
TypeError
|
TypeError
|
||||||
A :class:`Item` was not passed.
|
An :class:`Item` was not passed.
|
||||||
ValueError
|
ValueError
|
||||||
Maximum number of children has been exceeded (25)
|
Maximum number of children has been exceeded (25)
|
||||||
or the row the item is trying to be added to is full.
|
or the row the item is trying to be added to is full.
|
||||||
@ -245,7 +245,7 @@ class View:
|
|||||||
A callback that is called when an interaction happens within the view
|
A callback that is called when an interaction happens within the view
|
||||||
that checks whether the view should process item callbacks for the interaction.
|
that checks whether the view should process item callbacks for the interaction.
|
||||||
|
|
||||||
This is useful to override if for example you want to ensure that the
|
This is useful to override if, for example, you want to ensure that the
|
||||||
interaction author is a given user.
|
interaction author is a given user.
|
||||||
|
|
||||||
The default implementation of this returns ``True``.
|
The default implementation of this returns ``True``.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user