In iiasa/message_ix#613, the lint check fails with mypy 0.960, released today:
../ixmp/ixmp/core/scenario.py:312: error: Argument 1 to "len" has incompatible type "Union[Any, Literal[True]]"; expected "Sized"
../ixmp/ixmp/core/scenario.py:314: error: Argument 1 to "len" has incompatible type "Union[Any, Literal[True]]"; expected "Sized"
Found 2 errors in 1 file (checked 48 source files)
In iiasa/message_ix#613, the lint check fails with mypy 0.960, released today:
Adjust typing to satisfy this check.