Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardPython__init_subclass__Single-choice MCQ

object.__init_subclass__ accepts no extra keyword arguments and raises if any reach it. What does this imply for a cooperative __init_subclass__ that introduces its own keyword?

class Base: def __init_subclass__(cls, *, tag=None, **kwargs): # ??? before delegating super().__init_subclass__(**kwargs) cls.tag = tag