class BaseClass:
# Some base class methods and attributes
class InnerClass(BaseClass):
# The InnerClass inherits from the BaseClass
# It can access the attributes and methods of the BaseClass
def some_method(self):
# Use the inherited attributes and methods here
pass
class OuterClass:
# The OuterClass contains the InnerClass as one of its attributes
class InnerClass(BaseClass):
# The InnerClass defined inside the OuterClass also
# inherits from the BaseClass
def some_method(self):
# Use the inherited attributes and methods here
pass