doc: bookmark example and print_single_rec type hint
This commit is contained in:
parent
fc41c62f62
commit
fe9c3abea6
4
buku
4
buku
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user