Here's a patch which disables the 'returning-arg-in-generator' warning for Python 3.3+, because it is valid syntax. The return value will be the argument to StopIteration and StopIteration will be raised when the return is encountered.
for i in iter():
Traceback (most recent call last):
File "a.py", line 7, in <module>