This code fragment started generating errors after 0.780 release:
fromfunctoolsimportcmp_to_keyx= [(1, '')]
deff(): passreveal_type(cmp_to_key)
x.sort(key=cmp_to_key(lambdax, 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.