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
False "Invalid index type" for min derived from return type #14664
The default argument specifies an object to return if the provided iterable is empty. If the iterable is empty and default is not provided, a ValueError is raised.
Activity
EdwardEisenhauer commentedon Feb 20, 2023
I experienced a similar issue with the following code:
Running
mypyraises:As per Python built-in max() documentation:
EugeneYushin commentedon Feb 21, 2025
Know what:
This is odd
Extend special case for context-based typevar inference to typevar un…