Commit 22b25d6
authored
fix: use default_factory for mutable field defaults in ServerCallContext (a2aproject#744)
## summary
- replace `default={}` and `default=UnauthenticatedUser()` with
`default_factory=dict` and `default_factory=UnauthenticatedUser` in
`ServerCallContext` to prevent shared mutable default instances across
all instances.1 parent a236d4d commit 22b25d6
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
0 commit comments