Commit 6bd13af
fix(lammps): narrow bond_expansion type for mypy
nn.Module's __getattr__ types attribute access as Tensor | Module; the
else branch assigning ``be`` directly to ``self.bond_expansion: nn.Module``
tripped --strict mypy. Cast at the point of access (same pattern used for
potential.data_mean elsewhere in this file).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 580255d commit 6bd13af
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
0 commit comments