Skip to content

Conversation

@schloerke
Copy link
Collaborator

@schloerke schloerke commented Mar 11, 2025

Updated:

  • shiny._namespaces_.resolve_id() -> shiny.module.resolve_id()
  • shiny._namespaces_.current_namespace() -> shiny.module.current_namespace()
  • shiny._namespaces_.ResolvedId -> shiny.module.ResolvedId

Related: #1896

…`, `current_namespace()`, and `ResolvedId`

Related: #1896
@schloerke schloerke requested a review from Copilot March 11, 2025 16:01
Copy link
Contributor

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.

Pull Request Overview

This PR updates import statements to use the new reexported values from shiny.module instead of shiny._namespaces, improving code clarity and consistency. Key changes include:

  • Replacing imports of resolve_id, ResolvedId, and other namespace utilities from _namespaces with the corresponding entities from module.
  • Updating multiple files across the shiny codebase including UI components, session handling, and rendering.

Reviewed Changes

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

Show a summary per file
File Description
shiny/express/_stub_session.py Updated ResolvedId import to use shiny.module
shiny/ui/_download_button.py Replaced resolve_id import to use shiny.module
shiny/ui/_input_dark_mode.py Replaced resolve_id import to use shiny.module
shiny/ui/_input_password.py Replaced resolve_id import to use shiny.module
shiny/ui/_chat.py Combined ResolvedId and resolve_id imports from module
shiny/ui/_input_numeric.py Replaced resolve_id import to use shiny.module
shiny/ui/_input_file.py Replaced resolve_id import to use shiny.module
shiny/ui/_markdown_stream.py Replaced resolve_id import to use shiny.module
shiny/session/_session.py Updated ResolvedId import to use shiny.module
shiny/render/_render.py Updated ResolvedId import to use shiny.module
shiny/ui/_input_slider.py Replaced resolve_id import to use shiny.module
shiny/ui/_input_date.py Replaced resolve_id import to use shiny.module
shiny/ui/_input_check_radio.py Replaced resolve_id import to use shiny.module
shiny/ui/_input_select.py Replaced resolve_id import to use shiny.module
shiny/ui/_input_text.py Replaced resolve_id import to use shiny.module
shiny/ui/_input_update.py Combined ResolvedId and resolve_id imports from module
shiny/ui/_input_task_button.py Replaced resolve_id import to use shiny.module
shiny/ui/_output.py Replaced resolve_id import to use shiny.module
shiny/session/_utils.py Updated namespace_context import to use shiny.module
shiny/ui/_input_action_button.py Replaced resolve_id import to use shiny.module

@schloerke schloerke enabled auto-merge (squash) March 11, 2025 16:11
@schloerke schloerke merged commit 60fbef9 into main Mar 11, 2025
41 checks passed
@schloerke schloerke deleted the export_resolve_id branch March 11, 2025 16:17
schloerke added a commit that referenced this pull request Mar 11, 2025
schloerke added a commit that referenced this pull request Mar 11, 2025
* main:
  chore: Use details for extra info from error message (#1903)
  ci: adds action to lint conventional commits (#1902)
  build: JS build script updates (#1894)
  chore: Rename temp environ names (for launching browser) to avoid conflict with local environ names (#1899)
  build: Update shiny TS types to Shiny 1.10.0 (#1893)
  chore: Use `shiny.module` to import re-exported values from `shiny._namespaces` (#1898)
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