-
- Downloads
Explicitly check for __int__ slot when resolving overloads
In Python 3.8 and later, an attempt to implicitly convert an argument to 'int' via the __int__ slot will raise a deprecation warning. So when resolving overloads, we must check for the existence of the __int__ slot directly instead of implicitly checking for its existence by attempting a conversion.
Please register or sign in to comment