(self, messages: list[dict])
| 152 | # Protocol 版本——不需要继承, 只要有 stream 方法就行 |
| 153 | class ApiClientProtocol(Protocol): |
| 154 | def stream(self, messages: list[dict]) -> list[dict]: ... |
| 155 | |
| 156 | # 这个类没有继承任何东西, 但它有 stream 方法, 所以它"是" ApiClient |
| 157 | class SimpleClient: |
nothing calls this directly
no outgoing calls
no test coverage detected