relax warnings about noyield in generator functions