You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of python/mypy#14418, Mypyc emits a warning for generators: warning: Treating generator comprehension as list. But there is no need to emit this warning when the generator will be consumed in full anyway.
In this case, the warning is emitted for the enumerate generator. But the generator is immediately consumed by the dict call, and so it doesn't matter that the generator was compiled as a list.
The text was updated successfully, but these errors were encountered:
Because of python/mypy#14418, Mypyc emits a warning for generators:
warning: Treating generator comprehension as list
. But there is no need to emit this warning when the generator will be consumed in full anyway.In this case, the warning is emitted for the
enumerate
generator. But the generator is immediately consumed by thedict
call, and so it doesn't matter that the generator was compiled as a list.The text was updated successfully, but these errors were encountered: