Skip to content

Commit 189f8b3

Browse files
tyrallasterliakov
andauthored
from_iterable instead of *
Co-authored-by: Stanislav Terliakov <50529348+sterliakov@users.noreply.github.com>
1 parent f00e86c commit 189f8b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def yield_nonoverlapping_types(
290290
were the expression was reachable."""
291291

292292
selected = set()
293-
for candidate in set(chain(*self.nonoverlapping_types)):
293+
for candidate in set(chain.from_iterable(self.nonoverlapping_types)):
294294
if all(
295295
(candidate in nonoverlap) or (candidate.line in lines)
296296
for nonoverlap, lines in zip(self.nonoverlapping_types, self.unreachable_lines)

0 commit comments

Comments
 (0)