Is there anyway to hide the superclass initialization from the user?
For example:
For example:
1 2 3 4 5 6 7 8 |
class BaseClass: def __init__( self ): self .param = 10 class OtherClass(BaseClass): # I don't want the OtherClass to explicit call the baseclass initialization like this def __init__( self ): super ().__init__() |