import platform from rustapi_module.subclassing import Subclassable PYPY = platform.python_implementation() == "PyPy" class SomeSubClass(Subclassable): pass if not PYPY: a = SomeSubClass() _b = str(a) + repr(a)