Commit 2d36a25
committed
cli/sync(refactor[typing]): Fix update_repo return type
why: Return type was GitSync but function returns GitSync | HgSync | SvnSync.
what:
- Add HgSync and SvnSync imports from libvcs
- Change return type to union GitSync | HgSync | SvnSync
- Remove incorrect t.cast("GitSync", ...) wrappers
- Remove resolved TODO comment
- Add casts in tests that access GitSync-specific methods1 parent 3d37c4b commit 2d36a25
2 files changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
874 | 876 | | |
875 | 877 | | |
876 | 878 | | |
877 | | - | |
| 879 | + | |
878 | 880 | | |
879 | 881 | | |
880 | 882 | | |
| |||
896 | 898 | | |
897 | 899 | | |
898 | 900 | | |
| 901 | + | |
899 | 902 | | |
900 | 903 | | |
901 | 904 | | |
902 | | - | |
| 905 | + | |
903 | 906 | | |
904 | | - | |
| 907 | + | |
905 | 908 | | |
906 | 909 | | |
907 | 910 | | |
908 | | - | |
909 | 911 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
0 commit comments