Skip to content

Commit 01ad43b

Browse files
committed
run codegen
1 parent b449fa7 commit 01ad43b

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

plotly/graph_objs/_choropleth.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from plotly.basedatatypes import BaseTraceType as _BaseTraceType
55
import copy as _copy
6-
import warnings
76

87

98
class Choropleth(_BaseTraceType):
@@ -1486,15 +1485,6 @@ def __init__(
14861485
constructor must be a dict or
14871486
an instance of :class:`plotly.graph_objs.Choropleth`""")
14881487

1489-
if locationmode == "country names" and kwargs.get("_validate"):
1490-
warnings.warn(
1491-
"The library used by the *country names* `locationmode` option is changing in an upcoming version. "
1492-
"Country names in existing plots may not work in the new version. "
1493-
"To ensure consistent behavior, consider setting `locationmode` to *ISO-3*.",
1494-
DeprecationWarning,
1495-
stacklevel=5,
1496-
)
1497-
14981488
self._skip_invalid = kwargs.pop("skip_invalid", False)
14991489
self._validate = kwargs.pop("_validate", True)
15001490

plotly/graph_objs/_scattergeo.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from plotly.basedatatypes import BaseTraceType as _BaseTraceType
55
import copy as _copy
6-
import warnings
76

87

98
class Scattergeo(_BaseTraceType):
@@ -1550,15 +1549,6 @@ def __init__(
15501549
constructor must be a dict or
15511550
an instance of :class:`plotly.graph_objs.Scattergeo`""")
15521551

1553-
if locationmode == "country names" and kwargs.get("_validate"):
1554-
warnings.warn(
1555-
"The library used by the *country names* `locationmode` option is changing in an upcoming version. "
1556-
"Country names in existing plots may not work in the new version. "
1557-
"To ensure consistent behavior, consider setting `locationmode` to *ISO-3*.",
1558-
DeprecationWarning,
1559-
stacklevel=5,
1560-
)
1561-
15621552
self._skip_invalid = kwargs.pop("skip_invalid", False)
15631553
self._validate = kwargs.pop("_validate", True)
15641554

0 commit comments

Comments
 (0)