We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf70dab commit 7e002e5Copy full SHA for 7e002e5
mypy/binder.py
@@ -250,10 +250,12 @@ def update_from_options(self, frames: list[Frame]) -> bool:
250
options are the same.
251
"""
252
all_reachable = all(not f.unreachable for f in frames)
253
- frames = [f for f in frames if not f.unreachable]
+ if not all_reachable:
254
+ frames = [f for f in frames if not f.unreachable]
255
changed = False
- keys = {key for f in frames for key in f.types}
256
-
+ keys = [key for f in frames for key in f.types]
257
+ if len(keys) > 1:
258
+ keys = list(set(keys))
259
for key in keys:
260
current_value = self._get(key)
261
resulting_values = [f.types.get(key, current_value) for f in frames]
0 commit comments