Resolve the invocation separator for stored/default integration state.
(
integration: Any,
state: dict[str, Any],
key: str,
parsed_options: dict[str, Any] | None = None,
)
| 69 | |
| 70 | |
| 71 | def invoke_separator_for_integration( |
| 72 | integration: Any, |
| 73 | state: dict[str, Any], |
| 74 | key: str, |
| 75 | parsed_options: dict[str, Any] | None = None, |
| 76 | ) -> str: |
| 77 | """Resolve the invocation separator for stored/default integration state.""" |
| 78 | if parsed_options is not None: |
| 79 | return integration.effective_invoke_separator(parsed_options) |
| 80 | |
| 81 | setting = integration_setting(state, key) |
| 82 | stored_separator = setting.get("invoke_separator") |
| 83 | if isinstance(stored_separator, str) and stored_separator: |
| 84 | return stored_separator |
| 85 | |
| 86 | stored_parsed = setting.get("parsed_options") |
| 87 | if isinstance(stored_parsed, dict): |
| 88 | return integration.effective_invoke_separator(stored_parsed) |
| 89 | |
| 90 | return integration.effective_invoke_separator(None) |
nothing calls this directly
no test coverage detected