Commit f63ad0a
committed
fix(scripts): remove unreachable check and redundant type annotation
Pyright (1.1.399) flagged `final is current` after isinstance(current, Alias)
as unreachable since final_target returns Object. Just return final_target
directly. Mypy flagged the second `next_obj` declaration as a redefinition;
drop the type annotation on the rebinding.1 parent 892f474 commit f63ad0a
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
| |||
46 | 43 | | |
47 | 44 | | |
48 | 45 | | |
49 | | - | |
| 46 | + | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
| |||
0 commit comments