Commit b4b6e1e
committed
Fix IndexFile.commit
This changes that parameter's annotation to be equivalent to the
annotation of the corresponding Commit.create_from_tree parameter.
It had been annotated as the old Commit_ish type, but it passes
that argument to Commit.create_from_tree, and it also refers to
that method in its docstring for usage. Commit.create_from_tree
annotates this argument as an optional list of Commit objects, and
if the objects obtained when it iterates them are not Commit
instances, then an exception is raised. Even if being able to pass
other commit-ish things (or references, strings, etc.) is
desirable, that does not currently work.
This also improves sorting (and grouping style) of imports in that
file (which were being changed already to no longer import the old
Commit_ish type).parent_commits annotation1 parent ab27827 commit b4b6e1e
1 file changed
+15
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
| |||
41 | 34 | | |
42 | 35 | | |
43 | 36 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 37 | | |
| 38 | + | |
| 39 | + | |
48 | 40 | | |
49 | | - | |
50 | 41 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
56 | 46 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 47 | + | |
62 | 48 | | |
63 | 49 | | |
64 | 50 | | |
| |||
80 | 66 | | |
81 | 67 | | |
82 | 68 | | |
83 | | - | |
| 69 | + | |
84 | 70 | | |
85 | 71 | | |
86 | 72 | | |
87 | | - | |
| 73 | + | |
88 | 74 | | |
| 75 | + | |
89 | 76 | | |
90 | 77 | | |
91 | 78 | | |
| |||
1127 | 1114 | | |
1128 | 1115 | | |
1129 | 1116 | | |
1130 | | - | |
| 1117 | + | |
1131 | 1118 | | |
1132 | 1119 | | |
1133 | 1120 | | |
| |||
0 commit comments