Message 288450 - Python tracker (original) (raw)

No, the filtering is only applied to the new and init calls on the metaclass, not to the init_subclass call.

Showing the last part of an interactive session where I ran the above commands:

=========== >>> class AbstractWithInit(ignore_extra_args(Abstract), InitX, x=1): ... pass ... x >>> AbstractWithInit() <__main__.AbstractWithInit object at 0x7f9086694a58> >>>