Repository navigation
Commit eb986bd
fix: resolve pyright 'possibly unbound' errors in A2AAgent non-streaming path (microsoft#4754)
Initialize active_session and session_context before the conditional
context_providers block so pyright can verify they are always bound.
Add explicit None check for session_context in the after-providers guard.
Co-authored-by: Copilot <[email protected]>1 parent a8f7796 commit eb986bd
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
| 295 | + | |
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
| |||
309 | 311 | | |
310 | 312 | | |
311 | 313 | | |
312 | | - | |
| 314 | + | |
313 | 315 | | |
314 | 316 | | |
315 | 317 | | |
| |||
0 commit comments