Skip to content

Commit 4010260

Browse files
committed
add DeprecationWarning warning type in codegen
1 parent aba3ab2 commit 4010260

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

Diff for: packages/python/plotly/codegen/datatypes.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,8 @@ def __init__(self"""
417417
"*{node.name_property}* is deprecated!"
418418
+ " Use *{node.name_property.replace("mapbox", "map")}* instead."
419419
+ " Learn more at: https://plotly.com/python/mapbox-to-maplibre/",
420-
stacklevel=2
420+
stacklevel=2,
421+
category=DeprecationWarning,
421422
)
422423
"""
423424
)

Diff for: packages/python/plotly/plotly/graph_objs/_choroplethmapbox.py

+1
Original file line numberDiff line numberDiff line change
@@ -2385,4 +2385,5 @@ def __init__(
23852385
+ " Use *choroplethmap* instead."
23862386
+ " Learn more at: https://plotly.com/python/mapbox-to-maplibre/",
23872387
stacklevel=2,
2388+
category=DeprecationWarning,
23882389
)

Diff for: packages/python/plotly/plotly/graph_objs/_densitymapbox.py

+1
Original file line numberDiff line numberDiff line change
@@ -2326,4 +2326,5 @@ def __init__(
23262326
+ " Use *densitymap* instead."
23272327
+ " Learn more at: https://plotly.com/python/mapbox-to-maplibre/",
23282328
stacklevel=2,
2329+
category=DeprecationWarning,
23292330
)

Diff for: packages/python/plotly/plotly/graph_objs/_scattermapbox.py

+1
Original file line numberDiff line numberDiff line change
@@ -2299,4 +2299,5 @@ def __init__(
22992299
+ " Use *scattermap* instead."
23002300
+ " Learn more at: https://plotly.com/python/mapbox-to-maplibre/",
23012301
stacklevel=2,
2302+
category=DeprecationWarning,
23022303
)

0 commit comments

Comments
 (0)