Tests to do with __slots__
◆ test_subclassing()
| parsimonious.tests.test_expressions.SlotsTests.test_subclassing |
( |
|
self | ) |
|
Make sure a subclass of a __slots__-less class can introduce new
slots itself.
This isn't supposed to work, according to the language docs:
When inheriting from a class without __slots__, the __dict__
attribute of that class will always be accessible, so a __slots__
definition in the subclass is meaningless.
But it does.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/parsimonious/tests/test_expressions.py