Skip to content

Commit

Permalink
Merge pull request #136 from wizpig64/sort_annotation
Browse files Browse the repository at this point in the history
correct sort argument's type annotation when adding a subitem to a list
  • Loading branch information
kiwiz authored Apr 4, 2023
2 parents 54d05ea + 2feaacf commit c8796fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gkeepapi/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ def add(self, text, checked=False, sort=None):
Args:
text (str): The text.
checked (bool): Whether this item is checked.
sort (int): Item id for sorting.
sort (Union[gkeepapi.node.NewListItemPlacementValue, int]): Item id for sorting or a placement policy.
"""
if self.parent is None:
raise exception.InvalidException('Item has no parent')
Expand Down

0 comments on commit c8796fa

Please sign in to comment.