Inconsistent inference of sum
return type when coupled with nullability.
#7287
Labels
sum
return type when coupled with nullability.
#7287
Please provide more information to help us understand the issue:
Are you reporting a bug, or opening a feature request? Bug
Please insert below the code you are checking with mypy,
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
What is the actual behavior/output?
What is the behavior/output you expect? I expect
b
to be inferred as anint
in all cases, i.e.:What are the versions of mypy and Python you are using?
Do you see the same issue after installing mypy from Git master? Yes (
mypy 0.730+dev.eb34a7bdcceb4507459c0ef5472117f65bd0855d
)This might be a duplicate of #6697, but the details differ enough that I thought I should open a ticket just in case.
The text was updated successfully, but these errors were encountered: