Jeremiah Lowin commited on
Commit
d325152
·
1 Parent(s): dbf9272

response_type is None

Browse files
Files changed (1) hide show
  1. tests/client/test_elicitation.py +2 -2
tests/client/test_elicitation.py CHANGED
@@ -1,6 +1,6 @@
1
  from dataclasses import asdict, dataclass
2
  from enum import Enum
3
- from typing import Any, Literal
4
 
5
  import pytest
6
  from mcp.types import ElicitRequestParams
@@ -153,7 +153,7 @@ class TestScalarResponseTypes:
153
  message, response_type, params: ElicitRequestParams, ctx
154
  ):
155
  assert params.requestedSchema == {"type": "object", "properties": {}}
156
- assert response_type == dict[str, Any]
157
  return ElicitResult(action="accept")
158
 
159
  async with Client(mcp, elicitation_handler=elicitation_handler) as client:
 
1
  from dataclasses import asdict, dataclass
2
  from enum import Enum
3
+ from typing import Literal
4
 
5
  import pytest
6
  from mcp.types import ElicitRequestParams
 
153
  message, response_type, params: ElicitRequestParams, ctx
154
  ):
155
  assert params.requestedSchema == {"type": "object", "properties": {}}
156
+ assert response_type is None
157
  return ElicitResult(action="accept")
158
 
159
  async with Client(mcp, elicitation_handler=elicitation_handler) as client: