Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
slots=True do not play nice with __init_subclass__ #269
So I'm sitting here trying to write a test for this and for some reason, the test I've written is passing even when I comment out the fix.
Turns out CPython will actually reuse closure cells sometimes. So if a class has a normal method that needs to be rewritten, the problem will not manifest.