(cls)
| 498 | @classmethod |
| 499 | @lru_cache |
| 500 | def get_all_slots(cls): |
| 501 | slots = list() |
| 502 | for c in cls.mro(): |
| 503 | slots.extend(getattr(c, "__slots__", ())) |
| 504 | # Interestingly, sorting this causes the nested containers to pickle |
| 505 | # more efficiently |
| 506 | return sorted(set(slots)) |
| 507 | |
| 508 | |
| 509 | _no_deps: frozenset = frozenset() |
no test coverage detected