Skip to content

Conversation

@schloerke
Copy link
Collaborator

VSCode likes to import from the shiny module itself within the shiny package. While it works... it relies on import magic, not relative imports.

Bad: from shiny import foo
Bad: from shiny.foo import bar
Bad: import shiny

Good: from . import foo
Good: from .foo import bar

@schloerke schloerke enabled auto-merge (squash) March 14, 2025 19:29
@schloerke schloerke merged commit 2078746 into main Mar 14, 2025
54 checks passed
@schloerke schloerke deleted the test_pkg_imports branch March 14, 2025 19:33
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