Skip to content

Commit c248afe

Browse files
committed
Allow input names to be listed via dir()
1 parent 46ee863 commit c248afe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shiny/session/_session.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ class Session(ABC):
170170
id: str
171171
input: Inputs
172172
output: Outputs
173+
clientdata: Inputs
173174
user: str | None
174175
groups: list[str] | None
175176

@@ -1358,6 +1359,9 @@ def __contains__(self, key: str) -> bool:
13581359
# creates a reactive dependency, and returns whether the value is set.
13591360
return self[key].is_set()
13601361

1362+
def __dir__(self):
1363+
return list(self._map.keys())
1364+
13611365

13621366
# ======================================================================================
13631367
# Outputs

0 commit comments

Comments
 (0)