Skip to content

Commit 4d19994

Browse files
nicholas-esterernicolaskruchten
authored andcommitted
Mistake returning early from BaseFigure._selector_matches
1 parent 00bf9ac commit 4d19994

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/python/plotly/plotly/basedatatypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,8 +1212,8 @@ def _selector_matches(obj, selector):
12121212
if isinstance(selector_val, BasePlotlyType):
12131213
selector_val = selector_val.to_plotly_json()
12141214

1215-
return obj_val == selector_val
1216-
1215+
if obj_val != selector_val:
1216+
return False
12171217
return True
12181218
# If selector is a function, call it with the obj as the argument
12191219
elif type(selector) == type(lambda x: True):

0 commit comments

Comments
 (0)