(self, key=None, config=None)
| 115 | ) |
| 116 | |
| 117 | def on(self, key=None, config=None): |
| 118 | if not ((key is None) ^ (config is None)): |
| 119 | raise ValueError("Must use exactly one of key, config") |
| 120 | if key is not None: |
| 121 | |
| 122 | def add_to_keybinds(func): |
| 123 | self.add(key, func) |
| 124 | return func |
| 125 | |
| 126 | return add_to_keybinds |
| 127 | else: |
| 128 | |
| 129 | def add_to_config(func): |
| 130 | self.add_config_attr(config, func) |
| 131 | return func |
| 132 | |
| 133 | return add_to_config |
| 134 | |
| 135 | |
| 136 | class ConfiguredEdits(AbstractEdits): |
nothing calls this directly
no outgoing calls
no test coverage detected