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
12from ._bookmark import (
23 Bookmark ,
34 BookmarkApp ,
910from ._restore_state import RestoreContext , RestoreContextState
1011
1112__all__ = (
13+ # _globals
14+ "globals" ,
1215 # _bookmark
1316 "ShinySaveState" ,
1417 "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