Commit 92229e6
fix(optional_dereference): suppress zero-arg .get() false positives
dict.get() requires at least one positional key argument; .get() with no
arguments is always a custom class method (e.g. Twisted DeferredQueue.get(),
stats collector .get()). The prior guard only short-circuited the kwargs-only
case (Django ORM pattern), leaving bare .get() calls incorrectly flagged.
Regression: jasmin/managers/clients.py DeferredQueue pattern.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent af0ad8a commit 92229e6
2 files changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
233 | 238 | | |
234 | 239 | | |
235 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1927 | 1927 | | |
1928 | 1928 | | |
1929 | 1929 | | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
0 commit comments