Commit 184da57
Widen _python_ast_exception_name return type to Optional[str]
It can fall through all branches and implicitly return None; annotate it
accordingly (and return None explicitly) instead of suppressing mypy with
type: ignore[return].
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 366ef86 commit 184da57
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
0 commit comments