Skip to content

Commit 316c3aa

Browse files
committed
docs
1 parent 20fe6ed commit 316c3aa

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

shiny/bookmark/_restore_state.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,14 @@ async def from_query_string(query_string: str) -> "RestoreContext":
161161
def flush_pending(self) -> None:
162162
self.input.flush_pending()
163163

164-
# Returns a dict representation of the RestoreContext object. This is passed
165-
# to the app author's onRestore function. An important difference between
166-
# the RestoreContext object and the dict is that the former's `input` field
167-
# is a RestoreInputSet object, while the latter's `input` field is just a
168-
# list.
169-
170164
def as_state(self) -> RestoreContextState:
165+
"""
166+
Returns a dict representation of the RestoreContext object. This is passed
167+
to the app author's onRestore function. An important difference between
168+
the RestoreContext object and the dict is that the former's `input` field
169+
is a RestoreInputSet object, while the latter's `input` field is just a
170+
list.
171+
"""
171172
return RestoreContextState(
172173
# Shallow copy
173174
input={**self.input.as_dict()},

0 commit comments

Comments
 (0)