Commit 26593a1
Han Wang
chore(dpa4): clear CodeQL notes/warning (cyclic-import, unnecessary-delete, import-and-import-from)
- Break the base_model<->dpa4_native_spin_model static import cycle by making
the BaseModel import lazy inside deserialize (its only use).
- Drop an unnecessary 'del keepalive' at end of a test.
- Align a mixed 'import module' with the file's 'import from' style.
Leaves only the py/inheritance/signature-mismatch warnings, a pre-existing
repo-wide pattern on descriptor .call() overrides (present on unmodified
descriptors too).1 parent 144f245 commit 26593a1
2 files changed
Lines changed: 11 additions & 5 deletions
File tree
- deepmd/dpmodel/model
- source/tests/pt_expt/model
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
267 | 274 | | |
268 | 275 | | |
269 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
| |||
242 | 241 | | |
243 | 242 | | |
244 | 243 | | |
245 | | - | |
| 244 | + | |
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
| |||
0 commit comments