This code fragment started generating errors after 0.780 release:
from functools import cmp_to_key
x = [(1, '')]
def f(): pass
reveal_type(cmp_to_key)
x.sort(key=cmp_to_key(lambda x, y: f())) # Cannot infer type argument 1 of "cmp_to_key"
It might be related to python/typeshed#4192.
This happens only about 3 times in a big Dropbox internal codebase, and this is infrequent enough that I don't consider it release-blocking. I'm marking it as high-priority since this is a regression.
This code fragment started generating errors after 0.780 release:
It might be related to python/typeshed#4192.
This happens only about 3 times in a big Dropbox internal codebase, and this is infrequent enough that I don't consider it release-blocking. I'm marking it as high-priority since this is a regression.