Skip to content

Commit 0395a28

Browse files
committed
update manually-edited files to remove locationmode warning
1 parent 36210e4 commit 0395a28

2 files changed

Lines changed: 0 additions & 34 deletions

File tree

codegen/datatypes.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -340,22 +340,6 @@ def __init__(self"""
340340
"""
341341
)
342342

343-
# Add warning for 'country names' locationmode
344-
if node.name_property in locationmode_traces:
345-
buffer.write(
346-
f"""
347-
if locationmode == "country names" and kwargs.get("_validate"):
348-
warnings.warn(
349-
"The library used by the *country names* `locationmode` option is changing in an upcoming version. "
350-
"Country names in existing plots may not work in the new version. "
351-
"To ensure consistent behavior, consider setting `locationmode` to *ISO-3*.",
352-
DeprecationWarning,
353-
stacklevel=5,
354-
)
355-
356-
"""
357-
)
358-
359343
buffer.write(
360344
f"""
361345
self._skip_invalid = kwargs.pop("skip_invalid", False)

plotly/express/_chart_types.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,15 +1111,6 @@ def choropleth(
11111111
colored region mark on a map.
11121112
"""
11131113

1114-
if locationmode == "country names":
1115-
warn(
1116-
"The library used by the *country names* `locationmode` option is changing in an upcoming version. "
1117-
"Country names in existing plots may not work in the new version. "
1118-
"To ensure consistent behavior, consider setting `locationmode` to *ISO-3*.",
1119-
DeprecationWarning,
1120-
stacklevel=2,
1121-
)
1122-
11231114
return make_figure(
11241115
args=locals(),
11251116
constructor=go.Choropleth,
@@ -1179,15 +1170,6 @@ def scatter_geo(
11791170
by a symbol mark on a map.
11801171
"""
11811172

1182-
if locationmode == "country names":
1183-
warn(
1184-
"The library used by the *country names* `locationmode` option is changing in an upcoming version. "
1185-
"Country names in existing plots may not work in the new version. "
1186-
"To ensure consistent behavior, consider setting `locationmode` to *ISO-3*.",
1187-
DeprecationWarning,
1188-
stacklevel=2,
1189-
)
1190-
11911173
return make_figure(
11921174
args=locals(),
11931175
constructor=go.Scattergeo,

0 commit comments

Comments
 (0)