Commit dbbf383
committed
fix: Resolve mypy unused-ignore error for optional langchain import
- Add mypy override to disable warn_unused_ignores for langchain integration module
- Use placeholder class instead of None when langchain is not installed
- This allows the code to pass mypy both with and without langchain installed
The type: ignore comment is needed when langchain is NOT installed (CI),
but triggers unused-ignore when it IS installed (local dev). The mypy
override resolves this conflict.1 parent 4fc4687 commit dbbf383
File tree
2 files changed
+10
-2
lines changed- agent-memory-client
- agent_memory_client/integrations
2 files changed
+10
-2
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
0 commit comments