Closed pylint-bot closed 8 years ago
Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore)
There are some cases which are omitted by the non-iterator-returned checker, which handles only Instances.
For instance, the following needs to be caught:
#!python class B: pass class Foo: def __iter__(self): return B for i in Foo(): pass
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore):
non-iterator-returned can detect classes with iterator-metaclasses.
Closes issue #679.
Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore)
There are some cases which are omitted by the non-iterator-returned checker, which handles only Instances.
For instance, the following needs to be caught: