Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork944
Commitb4b6e1e
committed
Fix IndexFile.commit
This changes that parameter's annotation to be equivalent to theannotation of the corresponding Commit.create_from_tree parameter.It had been annotated as the old Commit_ish type, but it passesthat argument to Commit.create_from_tree, and it also refers tothat method in its docstring for usage. Commit.create_from_treeannotates this argument as an optional list of Commit objects, andif the objects obtained when it iterates them are not Commitinstances, then an exception is raised. Even if being able to passother commit-ish things (or references, strings, etc.) isdesirable, that does not currently work.This also improves sorting (and grouping style) of imports in thatfile (which were being changed already to no longer import the oldCommit_ish type).parent_commits
annotation1 parentab27827 commitb4b6e1e
1 file changed
+15
-28
lines changedLines changed: 15 additions & 28 deletions
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
Comments
(0)