Commit 692af95
refactor: address bot review suggestions
- Simplify tracing.py by removing isinstance check (always enum now)
- Refactor test assertions to use dictionary mapping instead of if/elif
- Reduce code duplication and improve readability
Addresses Gemini Code Assist bot suggestions:
- tracing.py: Direct .name access since finish_reason is always enum
- test_litellm.py: Dictionary mapping for cleaner test assertions1 parent a1c0938 commit 692af95
2 files changed
Lines changed: 11 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
| 306 | + | |
| 307 | + | |
311 | 308 | | |
312 | 309 | | |
313 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1967 | 1967 | | |
1968 | 1968 | | |
1969 | 1969 | | |
1970 | | - | |
| 1970 | + | |
1971 | 1971 | | |
1972 | | - | |
1973 | | - | |
1974 | | - | |
1975 | | - | |
1976 | | - | |
1977 | | - | |
1978 | | - | |
1979 | | - | |
1980 | | - | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
1981 | 1980 | | |
1982 | 1981 | | |
1983 | 1982 | | |
| |||
0 commit comments