Skip to content

Commit cf3e901

Browse files
committed
edit comment
1 parent c555d57 commit cf3e901

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: plotly/graph_objs/layout/_template.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,10 @@ def __init__(self, arg=None, data=None, layout=None, **kwargs):
325325
_v = arg.pop("data", None)
326326
_v = data if data is not None else _v
327327
if _v is not None:
328-
# Template.data contains key for deprecated scattermapbox trace
328+
# Template.data contains a 'scattermapbox' key, which causes a
329+
# go.Scattermapbox trace object to be created during validation.
329330
# In order to prevent false deprecation warnings from surfacing,
330-
# we suppress deprecation warnings for this line only
331+
# we suppress deprecation warnings for this line only.
331332
with warnings.catch_warnings():
332333
warnings.filterwarnings("ignore", category=DeprecationWarning)
333334
self["data"] = _v

0 commit comments

Comments
 (0)