Fix typos in some View methods' docstrings

This commit is contained in:
chromacoat dreamkey 2022-03-21 00:59:23 +08:00 committed by GitHub
parent 4dc24a005a
commit 515d17405a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,8 +254,10 @@ class View:
def add_item(self, item: Item[Any]) -> Self:
"""Adds an item to the view.
This function returns the class instance to allow for fluent-style
chaining.
Parameters
-----------
item: :class:`Item`
@ -284,6 +286,7 @@ class View:
def remove_item(self, item: Item[Any]) -> Self:
"""Removes an item from the view.
This function returns the class instance to allow for fluent-style
chaining.
@ -303,6 +306,7 @@ class View:
def clear_items(self) -> Self:
"""Removes all items from the view.
This function returns the class instance to allow for fluent-style
chaining.
"""