File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,12 @@ async def _default_logging_callback(
96
96
97
97
class ClientSession (
98
98
BaseSession [
99
- types .ClientRequest ,
100
- types .ClientNotification ,
101
- types .ClientResult ,
102
- types .ServerRequest ,
103
- types .ServerNotification ,
99
+ types .ClientRequest , # SendRequestT
100
+ types .ClientNotification , # SendNotificationT
101
+ types .ClientResult , # SendResultT
102
+ types .ServerRequest , # ReceiveRequestT
103
+ Any , # ReceiveResultT,兼容所有服务端返回结果类型
104
+ types .ServerNotification , # ReceiveNotificationT
104
105
]
105
106
):
106
107
def __init__ (
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ class ServerSession(
74
74
types .ServerNotification ,
75
75
types .ServerResult ,
76
76
types .ClientRequest ,
77
+ Any ,
77
78
types .ClientNotification ,
78
79
]
79
80
):
You can’t perform that action at this time.
0 commit comments