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

How does `__init_subclass__` receive keyword arguments passed in a class header, and what constrains its signature?

class Plugin: def __init_subclass__(cls, /, key, **kw): super().__init_subclass__(**kw) cls.key = key class A(Plugin, key="x"): pass