Return a list of slots and methods, including those from subclasses.
(self)
| 564 | return object.__delattr__(self, attr) |
| 565 | |
| 566 | def _superdir(self): |
| 567 | # type: () -> Set[str] |
| 568 | """ |
| 569 | Return a list of slots and methods, including those from subclasses. |
| 570 | """ |
| 571 | attrs = set() # type: Set[str] |
| 572 | cls = self.__class__ |
| 573 | if hasattr(cls, '__all_slots__'): |
| 574 | attrs.update(cls.__all_slots__) |
| 575 | for bcls in cls.__mro__: |
| 576 | if hasattr(bcls, '__dict__'): |
| 577 | attrs.update(bcls.__dict__) |
| 578 | return attrs |
| 579 | |
| 580 | def __dir__(self): |
| 581 | # type: () -> List[str] |