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.
from_iterable
*
1 parent f00e86c commit 189f8b3Copy full SHA for 189f8b3
1 file changed
mypy/errors.py
@@ -290,7 +290,7 @@ def yield_nonoverlapping_types(
290
were the expression was reachable."""
291
292
selected = set()
293
- for candidate in set(chain(*self.nonoverlapping_types)):
+ for candidate in set(chain.from_iterable(self.nonoverlapping_types)):
294
if all(
295
(candidate in nonoverlap) or (candidate.line in lines)
296
for nonoverlap, lines in zip(self.nonoverlapping_types, self.unreachable_lines)
0 commit comments