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
{{ message }}
Repository navigation
Type inference regression with sort and cmp_to_key #9372
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.
Can confirm that python/typeshed#4192 is the trigger for this to start generating errors. (Just pushed python/typeshed#4492 which improves the return type of cmp_to_key, but doesn't affect this).
Activity
hauntsaninja commentedon Aug 29, 2020
Can confirm that python/typeshed#4192 is the trigger for this to start generating errors. (Just pushed python/typeshed#4492 which improves the return type of cmp_to_key, but doesn't affect this).
Here's a self contained, mostly minimised repro:
If you remove the overload, the error goes away.
ilevkivskyi commentedon Feb 5, 2025
Both original and self-contained examples now pass correctly.