class C:
    def method(self):
        print(r'foobar' f'{self}')
f4fbd5fcb3201d748645f61db511bdeb497ad0d3
<mask token>

class C:
    <mask token>

class C:

    def method(self):
        print(f'foobar{self}')

class C:
    def method(self):
        print(r'foobar' f'{self}')