bypass iter-returns-non-self error

Since the return type is contitional, LGTM is not able to determine that its an iterator
This commit is contained in:
Setu Chokshi 2022-06-03 11:36:06 +08:00
Родитель 589bf92d57
Коммит f51bcc2092
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -325,7 +325,7 @@ class LogDiskIOBlock(object):
mlflow.log_metrics(disk_io_metrics)
class LogTimeOfIterator:
class LogTimeOfIterator: # lgtm [py/iter-returns-non-self]
"""This class is intended to "wrap" an existing Iterator
and log metrics for each next() call"""