Add deprecation warning if type of result of __float__ is float inherit class

Merged Bitbucket Importer requested to merge bitbucket/merged-pr-618 into branch/py3.6

Created originally on Bitbucket by jKorvin (Евгений Горинов)

Was already merged in Bitbucket before import, marked as merged by the import user

This pr should fix this test.

Merge request reports