diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-12-05 15:51:32 +0100 |
---|---|---|
committer | Michael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com> | 2019-12-05 11:08:12 -0500 |
commit | 40837894e8bab8f82d6d0541fa3fa537da84fdfc (patch) | |
tree | 0c6e254ca2e9e4980ab55d1651069f0a4a07ccd5 | |
parent | ae018a3c680e1ef1485a2033ac31ba006b04e25a (diff) | |
download | meson-40837894e8bab8f82d6d0541fa3fa537da84fdfc.zip meson-40837894e8bab8f82d6d0541fa3fa537da84fdfc.tar.gz meson-40837894e8bab8f82d6d0541fa3fa537da84fdfc.tar.bz2 |
lgtm: ignore Iterator does not return self from __iter__ method
-rw-r--r-- | mesonbuild/mesonlib.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index a19b2cf..0d8ec3c 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -1416,8 +1416,14 @@ class LibType(Enum): PREFER_STATIC = 3 -class ProgressBarFallback: - '''Fallback progress bar implementation when tqdm is not found''' +class ProgressBarFallback: # lgtm [py/iter-returns-non-self] + ''' + Fallback progress bar implementation when tqdm is not found + + Since this class is not an actual iterator, but only provides a minimal + fallback, it is safe to ignore the 'Iterator does not return self from + __iter__ method' warning. + ''' def __init__(self, iterable=None, total=None, bar_type=None, desc=None): if iterable is not None: self.iterable = iter(iterable) |