(self, config_attr, func)
| 56 | raise ValueError(f"return type of function {func!r} not recognized") |
| 57 | |
| 58 | def add_config_attr(self, config_attr, func): |
| 59 | if config_attr in self.awaiting_config: |
| 60 | raise ValueError( |
| 61 | f"config attribute {config_attr!r} already has a mapping" |
| 62 | ) |
| 63 | self.awaiting_config[config_attr] = func |
| 64 | |
| 65 | def call(self, key, **kwargs): |
| 66 | func = self[key] |
no outgoing calls