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
temp-2024-09-14-pytype/haha.py:3:1: error: in <module>: Built-in function sum was called with the wrong arguments [wrong-arg-types]
Expected: (iterable: Iterable[_Summable])
Actually passed: (iterable: List[None])
Attributes of protocol _Summable are not implemented on None: __add__
W = sum([None, None])~~~~~~~~~~~~~~~~~~~~
W = sum([None, None])
For more details, see https://google.github.io/pytype/errors.html#wrong-arg-types
but that's insufficient; all three of those lines ought have been flagged with wrong-arg-types (none of those three lines will evaluate without raising a TypeError).
The text was updated successfully, but these errors were encountered:
With
pytype-2024.9.13
the file contentis flagged with
but that's insufficient; all three of those lines ought have been flagged with
wrong-arg-types
(none of those three lines will evaluate without raising aTypeError
).The text was updated successfully, but these errors were encountered: