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
It seems that partial will infer to the generic return type of max and min, i.e., "SupportsRichComparisonT", but it should infer to float because args in max nad min are floats.
Programs version:
Python 3.10.1
mypy 1.2.0 (compiled: yes)
The text was updated successfully, but these errors were encountered:
Hello, I found that mypy can't infer to right return type when there is a generic type function in
partial
. Below is the code:It seems that
partial
will infer to the generic return type ofmax
andmin
, i.e., "SupportsRichComparisonT", but it should infer to float because args inmax
nadmin
are floats.Programs version:
The text was updated successfully, but these errors were encountered: