Skip to content

Commit 91e86e1

Browse files
authored
chore!: Make app_opts() args into kwargs (#1895)
1 parent 33e290a commit 91e86e1

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changes
1111

12+
* Express mode's `app_opts()` requires all arguments to be keyword-only. If you are using positional arguments, you will need to update your code. (#1895)
13+
1214
* The `.get_latest_stream_result()` method on `ui.MarkdownStream()` was deprecated in favor of the new `.latest_stream` property. Call `.result()` on the property to get the latest result, `.status` to check the status, and `.cancel()` to cancel the stream.
1315

1416
### Bug fixes

shiny/express/_run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ class AppOpts(TypedDict):
295295

296296
@no_example()
297297
def app_opts(
298+
*,
298299
static_assets: str | Path | Mapping[str, str | Path] | MISSING_TYPE = MISSING,
299300
debug: bool | MISSING_TYPE = MISSING,
300301
):

tests/playwright/shiny/components/chat/icon/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
ui.page_opts(title="Chat Icons")
99

10-
app_opts({"/img": Path(__file__).parent / "img"})
10+
app_opts(static_assets={"/img": Path(__file__).parent / "img"})
1111

1212
with ui.layout_columns():
1313
# Default Bot ---------------------------------------------------------------------

0 commit comments

Comments
 (0)