Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork938
Commit94a85d1
committed
Convert constant and attribute comments to docstrings
These are "non-reified docstrings" as described in#1734. They arenot made part of the data model, but most editors will displaythem, including on symbols present in code of other projects thatuse the GitPython library. A number of these have already beenadded, but this adds what will probably be most of the remainingones.For the most part, this doesn't create documentation where therewasn't any, but instead converts existing comments to "docstrings."In a handful of cases, they are expanded, reworded, or a docstringadded.This also fixes some small style inconsistencies that were missedin#1725, and moves a comment that had become inadvertentlydisplaced due to autoformatting to the item it was meant for.The major omission here is HIDE_WINDOWS_KNOWN_ERRORS andHIDE_WINDOWS_FREEZE_ERRORS. This doesn't convert the comments abovethem to "docstrings," for a few reasons. They are not specific toeither of the symbols, they are oriented toward considerations thatare not really relevant except when developing GitPython itself,and they are out of date. Also, because HIDE_WINDOWS_KNOWN_ERRORSis listed in __all__, increasing the level of documentation for itmight be taken as a committment to preserve some aspect of itscurrent behavior, which could interfere with progress on#790. SoI've kept those comments as comments, and unchanged, for now.1 parentd986a59 commit94a85d1
8 files changed
+64
-39
lines changedLines changed: 16 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
273 | 273 |
| |
274 | 274 |
| |
275 | 275 |
| |
276 |
| - | |
| 276 | + | |
| 277 | + | |
277 | 278 |
| |
278 |
| - | |
279 | 279 |
| |
| 280 | + | |
280 | 281 |
| |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 | 282 |
| |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
286 | 290 |
| |
287 |
| - | |
288 | 291 |
| |
289 | 292 |
| |
| 293 | + | |
290 | 294 |
| |
291 |
| - | |
292 |
| - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
293 | 300 |
| |
294 | 301 |
| |
295 | 302 |
| |
|
Lines changed: 12 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 |
| - | |
69 | 68 |
| |
| 69 | + | |
70 | 70 |
| |
71 |
| - | |
72 |
| - | |
73 | 71 |
| |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
74 | 76 |
| |
75 | 77 |
| |
76 | 78 |
| |
| |||
283 | 285 |
| |
284 | 286 |
| |
285 | 287 |
| |
286 |
| - | |
287 |
| - | |
288 |
| - | |
289 | 288 |
| |
290 |
| - | |
| 289 | + | |
291 | 290 |
| |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
292 | 296 |
| |
293 | 297 |
| |
294 | 298 |
| |
| |||
299 | 303 |
| |
300 | 304 |
| |
301 | 305 |
| |
302 |
| - | |
303 | 306 |
| |
| 307 | + | |
304 | 308 |
| |
305 | 309 |
| |
306 | 310 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
53 | 52 |
| |
| 53 | + | |
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
142 | 142 |
| |
143 | 143 |
| |
144 | 144 |
| |
145 |
| - | |
| 145 | + | |
| 146 | + | |
146 | 147 |
| |
147 |
| - | |
| 148 | + | |
| 149 | + | |
148 | 150 |
| |
149 | 151 |
| |
150 | 152 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
53 | 55 |
| |
54 | 56 |
| |
55 | 57 |
| |
|
Lines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
81 |
| - | |
82 |
| - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 |
| - | |
| 98 | + | |
| 99 | + | |
99 | 100 |
| |
100 |
| - | |
101 | 101 |
| |
| 102 | + | |
102 | 103 |
| |
103 | 104 |
| |
104 | 105 |
| |
|
Lines changed: 20 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
117 |
| - | |
| 117 | + | |
| 118 | + | |
118 | 119 |
| |
119 | 120 |
| |
120 | 121 |
| |
121 |
| - | |
| 122 | + | |
122 | 123 |
| |
123 | 124 |
| |
124 | 125 |
| |
125 | 126 |
| |
126 | 127 |
| |
127 |
| - | |
| 128 | + | |
128 | 129 |
| |
129 | 130 |
| |
130 | 131 |
| |
| |||
133 | 134 |
| |
134 | 135 |
| |
135 | 136 |
| |
136 |
| - | |
137 |
| - | |
| 137 | + | |
138 | 138 |
| |
139 | 139 |
| |
140 |
| - | |
141 |
| - | |
142 |
| - | |
| 140 | + | |
143 | 141 |
| |
144 | 142 |
| |
145 | 143 |
| |
| 144 | + | |
146 | 145 |
| |
147 |
| - | |
148 |
| - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
149 | 156 |
| |
| 157 | + | |
150 | 158 |
| |
151 | 159 |
| |
152 |
| - | |
153 | 160 |
| |
| 161 | + | |
| 162 | + | |
154 | 163 |
| |
155 | 164 |
| |
156 | 165 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
557 | 557 |
| |
558 | 558 |
| |
559 | 559 |
| |
560 |
| - | |
561 |
| - | |
| 560 | + | |
| 561 | + | |
562 | 562 |
| |
563 | 563 |
| |
564 | 564 |
| |
|
0 commit comments
Comments
(0)