use type instead of __class__
1 file changed