diff options
Diffstat (limited to 'pylint/checkers/typecheck.py')
-rw-r--r-- | pylint/checkers/typecheck.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index 76874085f..bfb47e98b 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (c) 2006-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2009 James Lingard <jchl@aristanetworks.com> # Copyright (c) 2012-2014 Google, Inc. @@ -87,8 +86,7 @@ BUILTIN_TUPLE = "builtins.tuple" def _unflatten(iterable): for index, elem in enumerate(iterable): if isinstance(elem, Sequence) and not isinstance(elem, str): - for single_elem in _unflatten(elem): - yield single_elem + yield from _unflatten(elem) elif elem and not index: # We're interested only in the first element. yield elem |