You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using commas wrong in a type ignore makes there be an error code in there that is the empty string #20038
When there is a trailing comma, a leading comma, or other comma abuse, the error is Unused "type: ignore[]" comment instead, because the empty string error code still counts.
I could easily have suppressed this symptom at the site of the unused ignores warning, but this seems like something that should probably be fixed at the source, to avoid other almost-invisible erroneous behavior from popping up later.
Activity
codenamenam commentedon Oct 12, 2025
This would be fixed by #20052
wyattscarpenter commentedon Oct 12, 2025
Wow, thanks!
Thanks also for fixing my proposed test, which are a little confused in the OP, due to me working on #19904 simultaneously.
codenamenam commentedon Oct 12, 2025
well, I just made some minor adjustments based on your test cases. Thank you for your contribution!
fix: Ignore empty error codes from 'type: ignore' (#20052)