chrisbouchard / easyrepr

Python decorator to automatically generate repr strings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect behavior with slots

chrisbouchard opened this issue · comments

Currently, if a class uses slots, when using Ellipsis or None easyrepr will either crash or miss the slotted attributes. We should discover attributes in slots and include them somehow.

We'll have to define the order with inheritance — presumably reverse MRO, with attributes from __dict__ added at the end. Also, we should ignore slots that do not have a defined value.