Skip to content

Commit 2101955

Browse files
timodonnellclaude
andcommitted
geometry: annotate place_batch return to silence mypy 2.x
CI runs mypy 2.1.0 (strict); the inferred return type of the conditionally-assigned _place_batch_kernel is Any, which trips no-any-return on direct return. Bind to a local annotated as np.ndarray and return that. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent bc616d9 commit 2101955

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pyconfind/geometry.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,5 @@ def place_batch(
188188
bond = np.ascontiguousarray(bond, dtype=np.float64)
189189
angle_deg = np.ascontiguousarray(angle_deg, dtype=np.float64)
190190
dihedral_deg = np.ascontiguousarray(dihedral_deg, dtype=np.float64)
191-
return _place_batch_kernel(a, b, c, bond, angle_deg, dihedral_deg)
191+
result: np.ndarray = _place_batch_kernel(a, b, c, bond, angle_deg, dihedral_deg)
192+
return result

0 commit comments

Comments
 (0)