Commit 178fe36
feat(paddle): Enable ANN rule for 3 additional utility files with type annotations
- Enable ANN rule for 3 more files, expanding from 31 to 34 total files:
- utils/serialization.py: Serialization utilities (already complete)
- utils/region.py: Region computation functions with tensor type annotations
- utils/exclude_mask.py: Atom and pair exclusion mask classes with proper type hints
- Added return type annotation to b_to_face_distance function in region.py
- Added comprehensive type annotations to AtomExcludeMask and PairExcludeMask classes
- Fixed getter methods with proper return types: list[int], paddle.Tensor, set[tuple[int, int]]
- Progress: 34 files now have ANN rule fully enabled (3,300% increase from initial 1 file)
Co-authored-by: njzjz <9496702+njzjz@users.noreply.github.com>1 parent f673c2e commit 178fe36
3 files changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
463 | 466 | | |
464 | 467 | | |
465 | 468 | | |
| |||
0 commit comments