class A def main is shared x as passthrough = A() s = 'notA' if x inherits A s = 'A' assert s == 'A'