Buckets:
| NODE_CONFIGS = {} | |
| #NOTE: THIS IS LEGACY FOR BACKWARD COMPATIBILITY. REPLACED BY TOOLTIPS. | |
| # this abstraction allows for the documentation to be both centrally managed and inherited | |
| from abc import ABCMeta | |
| class NodeConfigMeta(type): | |
| def __new__(cls, name, bases, attrs): | |
| new_class = super().__new__(cls, name, bases, attrs) | |
| if name in NODE_CONFIGS: | |
| for key, value in NODE_CONFIGS[name].items(): | |
| setattr(new_class, key, value) | |
| return new_class | |
| class CombinedMeta(NodeConfigMeta, ABCMeta): | |
| pass | |
| def add_node_config(node_name, config): | |
| NODE_CONFIGS[node_name] = config |
Xet Storage Details
- Size:
- 636 Bytes
- Xet hash:
- 1b59674d363ce44912e259fc4332471737e1e8b9bc714b2fdbb7e8ac1b2e7ec7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.