File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44from plotly .basedatatypes import BaseTraceType as _BaseTraceType
55import copy as _copy
6- import warnings
76
87
98class Choropleth (_BaseTraceType ):
@@ -1486,15 +1485,6 @@ def __init__(
14861485constructor must be a dict or
14871486an 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
Original file line number Diff line number Diff line change 33
44from plotly .basedatatypes import BaseTraceType as _BaseTraceType
55import copy as _copy
6- import warnings
76
87
98class Scattergeo (_BaseTraceType ):
@@ -1550,15 +1549,6 @@ def __init__(
15501549constructor must be a dict or
15511550an 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
You can’t perform that action at this time.
0 commit comments