doc: bookmark example and print_single_rec type hint

This commit is contained in:
Rachmadani Haryono 2020-07-24 06:06:25 +08:00 committed by rachmadaniHaryono
parent fc41c62f62
commit fe9c3abea6

4
buku
View File

@ -337,6 +337,8 @@ class BukuCrypt:
BookmarkVar = Tuple[int, str, Optional[str], str, str, int]
# example:
# (1, 'http://example.com', 'example title', ',tags1,', 'randomdesc', 0))
class BukuDb:
@ -4181,7 +4183,7 @@ def print_rec_with_filter(records, field_filter=0):
sys.exit(1)
def print_single_rec(row, idx=0): # NOQA
def print_single_rec(row: BookmarkVar, idx: Optional[int]=0): # NOQA
"""Print a single DB record.
Handles both search results and individual record.