| 178 | |
| 179 | |
| 180 | class ClientsideFunction: # pylint: disable=too-few-public-methods |
| 181 | def __init__(self, namespace: str, function_name: str): |
| 182 | |
| 183 | if namespace.startswith("_dashprivate_"): |
| 184 | raise ValueError("Namespaces cannot start with '_dashprivate_'.") |
| 185 | |
| 186 | if namespace in ["PreventUpdate", "no_update"]: |
| 187 | raise ValueError( |
| 188 | f'"{namespace}" is a forbidden namespace in dash_clientside.' |
| 189 | ) |
| 190 | |
| 191 | self.namespace = namespace |
| 192 | self.function_name = function_name |
| 193 | |
| 194 | def __repr__(self): |
| 195 | return f"ClientsideFunction({self.namespace}, {self.function_name})" |
| 196 | |
| 197 | |
| 198 | def extract_grouped_output_callback_args(args, kwargs): |
no outgoing calls
searching dependent graphs…