Closed pkgw closed 3 years ago
BTW, I am working around this by turning on :inherited-members:
for now, but it pollutes the namespaces of my classes with lots of extraneous traitlets cruft, so it's really not an acceptable long-term solution.
Yup!
This issue is an iteration on #52 / #53. Members of a class fail to be listed when the following circumstances hold:
:inherited-members:
is not in effectabc.ABC
__slots__
abc.ABCMeta
Sounds incredibly esoteric, but this is biting me in wwt_data_formats right now.
The problem is that the fix for the earlier bug, #53, only tests if the metaclass of the class in question is exactly
ABCMeta
. If the class uses a custom metaclass that derives fromABCMeta
, the check fails. For example:The fix is a one-liner, and I'll submit a PR momentarily.