Skip to content

Commit 0e13dcf

Browse files
Merge pull request #28 from Chinchill-AI/fix/mock-open-modal
fix: MockAdapter.open_modal accepts positional args
2 parents b622991 + d4d9ce9 commit 0e13dcf

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/chat_sdk/shared/mock_adapter.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,12 @@ def is_dm(self, thread_id: str) -> bool:
167167
def get_channel_visibility(self, thread_id: str) -> ChannelVisibility:
168168
return "unknown"
169169

170-
async def open_modal(self, **kwargs: Any) -> dict[str, str]:
170+
async def open_modal(
171+
self,
172+
trigger_id: str = "",
173+
modal: Any = None,
174+
context_id: str | None = None,
175+
) -> dict[str, str]:
171176
return {"view_id": "V123"}
172177

173178
async def fetch_channel_messages(self, channel_id: str, options: FetchOptions | None = None) -> FetchResult:

0 commit comments

Comments
 (0)