Commit 95b0aba
committed
Refactor nxos ntp for mypy typing
Making NTPPeerDict and NTPServerDict non-identical caused
issues with typing since we wre unable to assert the type of the
return dictionary easily. This refactor allows us to explicitly
state the return type for each function.1 parent 053e899 commit 95b0aba
2 files changed
+17
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
| 226 | + | |
237 | 227 | | |
238 | 228 | | |
239 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1204 | 1204 | | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
| 1207 | + | |
| 1208 | + | |
1211 | 1209 | | |
1212 | 1210 | | |
1213 | | - | |
1214 | 1211 | | |
1215 | 1212 | | |
1216 | 1213 | | |
1217 | 1214 | | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
| 1215 | + | |
| 1216 | + | |
1222 | 1217 | | |
1223 | 1218 | | |
1224 | | - | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
1225 | 1225 | | |
1226 | 1226 | | |
1227 | | - | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
1228 | 1233 | | |
1229 | 1234 | | |
1230 | 1235 | | |
| |||
0 commit comments