MCPcopy
hub / github.com/dask/dask / get_all_slots

Method get_all_slots

dask/_task_spec.py:500–506  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

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()

Callers 5

__sizeof__Method · 0.95
__setstate__Method · 0.80
__getstate__Method · 0.80
__getstate__Method · 0.80
_extra_argsFunction · 0.80

Calls 1

setClass · 0.85

Tested by

no test coverage detected