Commit 9d9b6c0
authored
Appease current pylint opinions: (googleapis#3692)
- Document missing ':raises:', ':rtype:', and ':returns:'.
- Use ':raises <exception_type>:'.
- Add pro-forma docstrings to namespace package initializers.
- Avoid using 'len(seq) == 0' (or '!=') for boolean tests.
pylint still complains about import cycles:
************* Module google.cloud.spanner.streamed
R: 1, 0: Cyclic import (google.cloud.spanner ->
google.cloud.spanner.client -> google.cloud.spanner.instance ->
google.cloud.spanner.database) (cyclic-import)
R: 1, 0: Cyclic import (google.cloud.spanner ->
google.cloud.spanner.client) (cyclic-import)1 parent a1269a6 commit 9d9b6c0Copy full SHA for 9d9b6c0
10 files changed
+86-28Lines changed: 86 additions & 28 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- spanner/google
- cloud
- spanner
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
| 15 | + |
| 16 | + |
15 | 17 | |
16 | 18 | |
17 | 19 | |
|
Collapse file
spanner/google/cloud/__init__.py
Copy file name to clipboardExpand all lines: spanner/google/cloud/__init__.py+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
| 15 | + |
| 16 | + |
15 | 17 | |
16 | 18 | |
17 | 19 | |
|
Collapse file
spanner/google/cloud/spanner/_helpers.py
Copy file name to clipboardExpand all lines: spanner/google/cloud/spanner/_helpers.py+7-4Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
38 | 38 | |
39 | 39 | |
40 | 40 | |
| 41 | + |
41 | 42 | |
42 | 43 | |
43 | 44 | |
| ||
48 | 49 | |
49 | 50 | |
50 | 51 | |
| 52 | + |
51 | 53 | |
52 | 54 | |
53 | 55 | |
| ||
74 | 76 | |
75 | 77 | |
76 | 78 | |
| 79 | + |
77 | 80 | |
78 | 81 | |
79 | 82 | |
| ||
110 | 113 | |
111 | 114 | |
112 | 115 | |
113 | | - |
| 116 | + |
114 | 117 | |
115 | 118 | |
116 | 119 | |
| ||
119 | 122 | |
120 | 123 | |
121 | 124 | |
122 | | - |
| 125 | + |
123 | 126 | |
124 | 127 | |
125 | 128 | |
| ||
150 | 153 | |
151 | 154 | |
152 | 155 | |
153 | | - |
| 156 | + |
154 | 157 | |
155 | 158 | |
156 | 159 | |
| ||
189 | 192 | |
190 | 193 | |
191 | 194 | |
192 | | - |
| 195 | + |
193 | 196 | |
194 | 197 | |
195 | 198 | |
|
Collapse file
spanner/google/cloud/spanner/database.py
Copy file name to clipboardExpand all lines: spanner/google/cloud/spanner/database.py+24-3Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
99 | 99 | |
100 | 100 | |
101 | 101 | |
102 | | - |
103 | | - |
104 | | - |
| 102 | + |
| 103 | + |
105 | 104 | |
106 | 105 | |
107 | 106 | |
| ||
175 | 174 | |
176 | 175 | |
177 | 176 | |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
178 | 184 | |
179 | 185 | |
180 | 186 | |
| ||
205 | 211 | |
206 | 212 | |
207 | 213 | |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
208 | 219 | |
209 | 220 | |
210 | 221 | |
| ||
224 | 235 | |
225 | 236 | |
226 | 237 | |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
227 | 242 | |
228 | 243 | |
229 | 244 | |
| ||
246 | 261 | |
247 | 262 | |
248 | 263 | |
| 264 | + |
| 265 | + |
| 266 | + |
249 | 267 | |
250 | 268 | |
251 | 269 | |
| ||
474 | 492 | |
475 | 493 | |
476 | 494 | |
| 495 | + |
| 496 | + |
| 497 | + |
477 | 498 | |
478 | 499 | |
479 | 500 | |
|
Collapse file
spanner/google/cloud/spanner/instance.py
Copy file name to clipboardExpand all lines: spanner/google/cloud/spanner/instance.py+17-5Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
109 | 109 | |
110 | 110 | |
111 | 111 | |
112 | | - |
113 | | - |
114 | | - |
115 | | - |
116 | | - |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
117 | 116 | |
118 | 117 | |
119 | 118 | |
| ||
201 | 200 | |
202 | 201 | |
203 | 202 | |
| 203 | + |
| 204 | + |
| 205 | + |
204 | 206 | |
205 | 207 | |
206 | 208 | |
| ||
230 | 232 | |
231 | 233 | |
232 | 234 | |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
233 | 240 | |
234 | 241 | |
235 | 242 | |
| ||
248 | 255 | |
249 | 256 | |
250 | 257 | |
| 258 | + |
| 259 | + |
| 260 | + |
251 | 261 | |
252 | 262 | |
253 | 263 | |
| ||
281 | 291 | |
282 | 292 | |
283 | 293 | |
| 294 | + |
| 295 | + |
284 | 296 | |
285 | 297 | |
286 | 298 | |
|
Collapse file
spanner/google/cloud/spanner/pool.py
Copy file name to clipboardExpand all lines: spanner/google/cloud/spanner/pool.py+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
| 42 | + |
| 43 | + |
42 | 44 | |
43 | 45 | |
44 | 46 | |
| ||
48 | 50 | |
49 | 51 | |
50 | 52 | |
| 53 | + |
| 54 | + |
51 | 55 | |
52 | 56 | |
53 | 57 | |
| ||
60 | 64 | |
61 | 65 | |
62 | 66 | |
| 67 | + |
| 68 | + |
63 | 69 | |
64 | 70 | |
65 | 71 | |
| ||
69 | 75 | |
70 | 76 | |
71 | 77 | |
| 78 | + |
| 79 | + |
72 | 80 | |
73 | 81 | |
74 | 82 | |
|
Collapse file
spanner/google/cloud/spanner/session.py
Copy file name to clipboardExpand all lines: spanner/google/cloud/spanner/session.py+12-4Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
78 | 78 | |
79 | 79 | |
80 | 80 | |
| 81 | + |
81 | 82 | |
82 | 83 | |
83 | 84 | |
| ||
106 | 107 | |
107 | 108 | |
108 | 109 | |
| 110 | + |
| 111 | + |
109 | 112 | |
110 | 113 | |
111 | 114 | |
| ||
126 | 129 | |
127 | 130 | |
128 | 131 | |
129 | | - |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
130 | 136 | |
131 | 137 | |
132 | 138 | |
| ||
151 | 157 | |
152 | 158 | |
153 | 159 | |
154 | | - |
| 160 | + |
155 | 161 | |
156 | 162 | |
157 | 163 | |
| ||
223 | 229 | |
224 | 230 | |
225 | 231 | |
226 | | - |
| 232 | + |
227 | 233 | |
228 | 234 | |
229 | 235 | |
| ||
235 | 241 | |
236 | 242 | |
237 | 243 | |
238 | | - |
| 244 | + |
239 | 245 | |
240 | 246 | |
241 | 247 | |
| ||
264 | 270 | |
265 | 271 | |
266 | 272 | |
| 273 | + |
| 274 | + |
267 | 275 | |
268 | 276 | |
269 | 277 | |
|
Collapse file
spanner/google/cloud/spanner/snapshot.py
Copy file name to clipboardExpand all lines: spanner/google/cloud/spanner/snapshot.py+9-7Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
74 | 74 | |
75 | 75 | |
76 | 76 | |
77 | | - |
78 | | - |
| 77 | + |
| 78 | + |
| 79 | + |
79 | 80 | |
80 | 81 | |
81 | 82 | |
| ||
126 | 127 | |
127 | 128 | |
128 | 129 | |
129 | | - |
130 | | - |
| 130 | + |
| 131 | + |
| 132 | + |
131 | 133 | |
132 | 134 | |
133 | 135 | |
| ||
248 | 250 | |
249 | 251 | |
250 | 252 | |
251 | | - |
| 253 | + |
252 | 254 | |
253 | 255 | |
254 | 256 | |
255 | | - |
256 | | - |
| 257 | + |
| 258 | + |
257 | 259 | |
258 | 260 | |
259 | 261 | |
|
Collapse file
spanner/google/cloud/spanner/streamed.py
Copy file name to clipboardExpand all lines: spanner/google/cloud/spanner/streamed.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
163 | 163 | |
164 | 164 | |
165 | 165 | |
166 | | - |
| 166 | + |
167 | 167 | |
168 | 168 | |
169 | 169 | |
|
Collapse file
spanner/google/cloud/spanner/transaction.py
Copy file name to clipboardExpand all lines: spanner/google/cloud/spanner/transaction.py+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
60 | 60 | |
61 | 61 | |
62 | 62 | |
63 | | - |
64 | | - |
| 63 | + |
| 64 | + |
65 | 65 | |
66 | 66 | |
67 | 67 | |
| ||
97 | 97 | |
98 | 98 | |
99 | 99 | |
100 | | - |
| 100 | + |
101 | 101 | |
102 | 102 | |
103 | 103 | |
104 | | - |
| 104 | + |
105 | 105 | |
106 | 106 | |
107 | 107 | |
|
0 commit comments