See #2112 for the reproducer. This can be just fixed by replacing that `v.__name__` for a `getattr(v, '__name__', None)` when checking if the callable is a final method.