Replies: 1 comment
-
Your code looks fine to me. You would need to suppress the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a code that defines a binary operator like this:
Due to how binary operators work in python, I am forced to wrap the actual implementation in
if isinstance
block and returnNotImplemented
if the check fails.This worked without errors prior to version 1.1.380. On version, 1.1.380 I'm getting this error:
So, my question is: how to properly type annotate
__add__
, given the special behavior of binary operators in python?Beta Was this translation helpful? Give feedback.
All reactions