mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-30 23:47:58 +00:00
8 lines
125 B
Python
8 lines
125 B
Python
class Base:
|
|
def target(self):
|
|
return 7
|
|
class Child(Base):
|
|
pass
|
|
|
|
worker = Child()
|
|
getattr(worker, "target")()
|