Pass a Parent Class as an Argument - Python
Is it possible to leave a parent class unspecified until an instance is
created e.g. something like this:
class SomeParentClass:
# something
class Child(unspecifiedParentClass):
# something
instance = Child(SomeParentClass)
This obviously does not work. But is it possible to do this somehow?
No comments:
Post a Comment