kuroko/test/testClassMethodSuper.krk
2023-01-26 20:01:39 +09:00

20 lines
235 B
Python

class Foo():
@classmethod
def cm(cls):
print(f"{cls=}")
class Bar(Foo):
pass
class Baz(Foo):
@classmethod
def cm(cls):
print("(Baz)")
super().cm()
Bar.cm()
Bar().cm()
Baz.cm()
Baz().cm()