Skip to content

Commit 16d03f2

Browse files
committed
Add shiny.express.layout compatibility shim
1 parent 55b60fd commit 16d03f2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

shiny/express/layout.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import warnings
2+
3+
from . import ui
4+
5+
warnings.warn(
6+
"shiny.express.layout has been deprecated and renamed to shiny.express.ui. "
7+
"Please import shiny.express.ui instead of shiny.express.layout.",
8+
ImportWarning,
9+
stacklevel=2,
10+
)
11+
12+
13+
def __getattr__(name: str) -> object:
14+
return getattr(ui, name)

0 commit comments

Comments
 (0)