File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ from . import _globals as globals
1
2
from ._bookmark import (
2
3
Bookmark ,
3
4
BookmarkApp ,
9
10
from ._restore_state import RestoreContext , RestoreContextState
10
11
11
12
__all__ = (
13
+ # _globals
14
+ "globals" ,
12
15
# _bookmark
13
16
"ShinySaveState" ,
14
17
"Bookmark" ,
Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+
3
+ from pathlib import Path
4
+ from typing import Awaitable , Callable , Literal
5
+
6
+ from ..types import MISSING , MISSING_TYPE
7
+
8
+ # TODO: Barret: Q: Can we merge how bookmark dirs are saved / loaded?
9
+ BookmarkStateSaveDir = Callable [[str ], Awaitable [Path ]]
10
+ BookmarkStateLoadDir = Callable [[str ], Awaitable [Path ]]
11
+ bookmark_state_save_dir : BookmarkStateSaveDir | MISSING_TYPE = MISSING
12
+ bookmark_state_load_dir : BookmarkStateLoadDir | MISSING_TYPE = MISSING
13
+
14
+ BookmarkStore = Literal ["url" , "server" , "disable" ]
15
+ bookmark_store : BookmarkStore = "disable"
16
+
17
+
18
+ # def bookmark_store_get() -> BookmarkStore:
19
+ # return bookmark_store
20
+
21
+
22
+ # def bookmark_store_set(value: BookmarkStore) -> None:
23
+ # global bookmark_store
24
+ # bookmark_store = value
You can’t perform that action at this time.
0 commit comments