Commit 75c5089
committed
chore: create a custom
Create a custom `warnings.warn` wrapper that will walk the stack trace
to find the first frame outside of the `gitlab/` path to print the
warning against. This will make it easier for users to find where in
their code the error is generated fromwarnings.warn wrapper1 parent 4cb7d92 commit 75c5089Copy full SHA for 75c5089
File tree
Expand file treeCollapse file tree
6 files changed
+95
-25
lines changedOpen diff view settings
Filter options
- docs
- gitlab
- v4/objects
- tests/unit
Expand file treeCollapse file tree
6 files changed
+95
-25
lines changedOpen diff view settings
Collapse file
+13-5Lines changed: 13 additions & 5 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
96 | | - |
| 96 | + |
97 | 97 | |
98 | 98 | |
99 | 99 | |
100 | 100 | |
101 | 101 | |
102 | | - |
| 102 | + |
103 | 103 | |
104 | 104 | |
105 | 105 | |
106 | 106 | |
107 | 107 | |
108 | 108 | |
109 | 109 | |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
110 | 116 | |
111 | 117 | |
112 | 118 | |
| ||
133 | 139 | |
134 | 140 | |
135 | 141 | |
136 | | - |
| 142 | + |
137 | 143 | |
138 | 144 | |
139 | 145 | |
| ||
150 | 156 | |
151 | 157 | |
152 | 158 | |
153 | | - |
| 159 | + |
154 | 160 | |
155 | | - |
| 161 | + |
156 | 162 | |
157 | 163 | |
158 | 164 | |
| ||
222 | 228 | |
223 | 229 | |
224 | 230 | |
| 231 | + |
| 232 | + |
225 | 233 | |
226 | 234 | |
227 | 235 | |
|
Collapse file
+8-5Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
| 23 | + |
23 | 24 | |
24 | 25 | |
25 | 26 | |
| ||
40 | 41 | |
41 | 42 | |
42 | 43 | |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
48 | 51 | |
49 | 52 | |
50 | 53 | |
Collapse file
+37-1Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
| 18 | + |
| 19 | + |
18 | 20 | |
19 | | - |
| 21 | + |
| 22 | + |
20 | 23 | |
21 | 24 | |
22 | 25 | |
| ||
90 | 93 | |
91 | 94 | |
92 | 95 | |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
Collapse file
gitlab/v4/objects/artifacts.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/artifacts.py+6-5Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | 5 | |
7 | 6 | |
8 | 7 | |
| ||
34 | 33 | |
35 | 34 | |
36 | 35 | |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
41 | 42 | |
42 | 43 | |
43 | 44 | |
|
Collapse file
gitlab/v4/objects/projects.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/projects.py+12-9Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | 1 | |
3 | 2 | |
4 | 3 | |
| ||
548 | 547 | |
549 | 548 | |
550 | 549 | |
551 | | - |
552 | | - |
553 | | - |
554 | | - |
| 550 | + |
| 551 | + |
| 552 | + |
| 553 | + |
| 554 | + |
| 555 | + |
555 | 556 | |
556 | 557 | |
557 | 558 | |
| ||
562 | 563 | |
563 | 564 | |
564 | 565 | |
565 | | - |
566 | | - |
567 | | - |
568 | | - |
| 566 | + |
| 567 | + |
| 568 | + |
| 569 | + |
| 570 | + |
| 571 | + |
569 | 572 | |
570 | 573 | |
571 | 574 | |
|
Collapse file
+19Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
| 19 | + |
19 | 20 | |
20 | 21 | |
21 | 22 | |
| ||
76 | 77 | |
77 | 78 | |
78 | 79 | |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
0 commit comments