def __iter__(self): # type: ignore
# Until https://github.com/python/typing/issues/11
# there's no good way to tell mypy about custom
# iterators that subclass io.IOBase.
"""Let this class act as an iterator."""
return self
评论列表
文章目录