kuroko/test/testClassMethodSuper.krk

20 lines
235 B
Python
Raw Permalink Normal View History

2023-01-26 14:01:12 +03:00
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()