change .__class__ to .func [skip ci]