Commit 0a3711c
fix(linear): annotate circuit breaker globals so ty doesn't narrow
`ty check` infers `_consecutive_auth_failures = 0` as `Literal[0]` and
`_auth_circuit_open = False` as `Literal[False]`, which then rejects
the legitimate runtime flips (and the test fixture that resets them
between cases). Adding explicit `int` / `bool` annotations widens the
inferred type and fixes the CI typecheck failure introduced in
`f4633be`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a713c62 commit 0a3711c
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
0 commit comments