Skip to content

Commit df25eb8

Browse files
committed
remove test_generate_class_file, only fails on change
1 parent b953db9 commit df25eb8

File tree

2 files changed

+8
-78
lines changed

2 files changed

+8
-78
lines changed

dash/dependencies.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,16 @@ def _id_matches(self, other) -> bool:
8282
my_id = self.component_id
8383
other_id = other.component_id
8484

85-
if isinstance(my_id, dict):
86-
if isinstance(other_id, dict):
87-
return False
88-
if set(my_id.keys()) != set(other_id.keys()):
85+
self_dict = isinstance(my_id, dict)
86+
other_dict = isinstance(other_id, dict)
87+
88+
if self_dict != other_dict:
89+
return False
90+
if self_dict:
91+
if set(my_id.keys()) != set(other_id.keys()): # type: ignore
8992
return False
9093

91-
for k, v in my_id.items():
94+
for k, v in my_id.items(): # type: ignore
9295
other_v = other_id[k]
9396
if v == other_v:
9497
continue

tests/unit/development/test_generate_class_file.py

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)