Skip to content

Explicitly check for __int__ slot when resolving overloads

David Gobbi requested to merge dgobbi/vtk:python38-int-deprecation into master

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.

Merge request reports