Commit 7b57d59
fix: resolve pyright type check errors in LangChain callback handler
- Suppress reportUnknownArgumentType/reportUnknownVariableType on
serialized_id list join (type comes from untyped dict[str, Any])
- Remove unnecessary isinstance(query, str) check — query param is
already typed as str in on_retriever_start signature
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent fc8390f commit 7b57d59
1 file changed
Lines changed: 2 additions & 6 deletions
File tree
- instrumentation-genai/opentelemetry-instrumentation-langchain/src/opentelemetry/instrumentation/langchain
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
| 401 | + | |
406 | 402 | | |
407 | 403 | | |
408 | 404 | | |
| |||
0 commit comments