Skip to content

Conversation

schloerke
Copy link
Collaborator

@schloerke schloerke commented Mar 10, 2025

These parameters are independent and will not scale with new additions: ex: bookmark_store.

Making them kwargs feels like a natural setup.

@schloerke schloerke self-assigned this Mar 10, 2025
@schloerke schloerke requested a review from Copilot March 10, 2025 15:22
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR converts the parameters of app_opts() to keyword-only arguments for improved clarity and future scalability.

  • Updated the call in tests to use the new keyword parameter "static_assets".
  • Updated the function signature in shiny/express/_run.py to enforce keyword-only arguments.
  • Added a corresponding changelog entry to inform users of the change.

Reviewed Changes

File Description
tests/playwright/shiny/components/chat/icon/app.py Updated test to call app_opts() using the keyword static_assets.
CHANGELOG.md Added an entry to detail the breaking change on app_opts() API.
shiny/express/_run.py Modified the function signature to enforce keyword-only parameters.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

@schloerke schloerke marked this pull request as ready for review March 10, 2025 15:22
schloerke added a commit that referenced this pull request Mar 10, 2025
@schloerke schloerke merged commit 91e86e1 into main Mar 10, 2025
47 checks passed
@schloerke schloerke deleted the app_opts_kwargs branch March 10, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants