Skip to content

Commit 2c3114e

Browse files
stevenjkernjonmmease
authored andcommitted
FIX: fix incorrect import in deprecation warning for Scene class (#1670)
* FIX: fix incorrect import in deprecation warning for Scene class * Update codegen logic to produce correct deprecation message
1 parent 15b2519 commit 2c3114e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/python/plotly/codegen/compatibility.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"Margin": {"base_type": dict, "new": ["layout"]},
2727
"Marker": {"base_type": dict, "new": ["scatter", "histogram.selected", "etc."]},
2828
"RadialAxis": {"base_type": dict, "new": ["layout", "layout.polar"]},
29-
"Scene": {"base_type": dict, "new": ["Scene"]},
29+
"Scene": {"base_type": dict, "new": ["layout"]},
3030
"Stream": {"base_type": dict, "new": ["scatter", "area"]},
3131
"XAxis": {"base_type": dict, "new": ["layout", "layout.scene"]},
3232
"YAxis": {"base_type": dict, "new": ["layout", "layout.scene"]},

packages/python/plotly/plotly/graph_objs/_deprecations.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -475,21 +475,21 @@ class Scene(dict):
475475
"""
476476
plotly.graph_objs.Scene is deprecated.
477477
Please replace it with one of the following more specific types
478-
- plotly.graph_objs.Scene
478+
- plotly.graph_objs.layout.Scene
479479
480480
"""
481481

482482
def __init__(self, *args, **kwargs):
483483
"""
484484
plotly.graph_objs.Scene is deprecated.
485485
Please replace it with one of the following more specific types
486-
- plotly.graph_objs.Scene
486+
- plotly.graph_objs.layout.Scene
487487
488488
"""
489489
warnings.warn(
490490
"""plotly.graph_objs.Scene is deprecated.
491491
Please replace it with one of the following more specific types
492-
- plotly.graph_objs.Scene
492+
- plotly.graph_objs.layout.Scene
493493
""",
494494
DeprecationWarning,
495495
)

0 commit comments

Comments
 (0)