Open tartopohm opened 1 month ago
Yeah I was considering to add it, but 24.1 was 8 months overdue so this fell off the wagon, since I wasn’t sure what’s involved.
Fair enough. I am completely swamped at the moment, so no promises, but I'll try to look into it if I can find the time.
Hello, thanks for the great work!
My question/issue is related to
__attrs_init_subclass__
that was recently added. PEP 487 allows for passing arguments (not sure whether that's the proper name) at class definition. The use case, for me, would be to have some sort of abstract class attributes that should be defined by concrete classes.To make it short, reusing the example from the docs, this works
while
does not, throwing
TypeError: Derived.__init_subclass__() takes no keyword arguments
.Would there be any workaround?