Doesn't correctly match overloads when calling method using conditional arguments #9264
Labels
false-positive
mypy gave an error on correct code
needs discussion
topic-join-v-union
Using join vs. using unions
topic-overloads
topic-ternary-expression
a if b else c
topic-usability
Bug report
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
I am forced to replace it with
I would expect mypy to pass, as I believe the arguments passed to the bytearray constructor match the overloads.
Do you see the same issue after installing mypy from Git master?
mypy 0.782
master is the same
mypy --strict
The text was updated successfully, but these errors were encountered: