Commit 3e8ab67
committed
fix(perplexity): silence mypy union-attr after dropping None guards
After removing the redundant 'if self._client is None: raise RuntimeError'
blocks, mypy can no longer narrow the type since warm_up()'s side effect
is invisible to it. Add # type: ignore[union-attr] on the .post() calls
in run / run_async (per sjrl review).1 parent a89aac3 commit 3e8ab67
1 file changed
Lines changed: 2 additions & 2 deletions
File tree
- integrations/perplexity/src/haystack_integrations/components/websearch/perplexity
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
0 commit comments