Skip to content

Commit b2f3d45

Browse files
Augustin-Zidekcopybara-github
authored andcommitted
Add missing type annotations
PiperOrigin-RevId: 937865794 Change-Id: I69046a04cfe1007a297e2d6fae2e072fd4984319
1 parent a84d263 commit b2f3d45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/alphafold3/model/protein_data_processing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
)
3636

3737

38-
def _make_restype_rigidgroup_dense_atom_idx():
38+
def _make_restype_rigidgroup_dense_atom_idx() -> np.ndarray:
3939
"""Create Mapping from rigid_groups to dense_atom indices."""
4040
# Create an array with the atom names.
4141
# shape (num_restypes, num_rigidgroups, 3_atoms):
@@ -82,7 +82,7 @@ def _make_restype_rigidgroup_dense_atom_idx():
8282
RESTYPE_RIGIDGROUP_DENSE_ATOM_IDX = _make_restype_rigidgroup_dense_atom_idx()
8383

8484

85-
def _make_restype_pseudobeta_idx():
85+
def _make_restype_pseudobeta_idx() -> np.ndarray:
8686
"""Returns indices of residue's pseudo-beta."""
8787
restype_pseudobeta_index = np.zeros(
8888
(NUM_RESTYPES_WITH_UNK_AND_GAP,), dtype=np.int32
@@ -111,7 +111,7 @@ def _make_restype_pseudobeta_idx():
111111
RESTYPE_PSEUDOBETA_INDEX = _make_restype_pseudobeta_idx()
112112

113113

114-
def _make_aatype_dense_atom_to_atom37():
114+
def _make_aatype_dense_atom_to_atom37() -> np.ndarray:
115115
"""Map from dense_atom to atom37 per residue type."""
116116
restype_dense_atom_to_atom37 = [] # mapping (restype, dense_atom) --> atom37
117117
for rt in residue_names.PROTEIN_TYPES_ONE_LETTER:

0 commit comments

Comments
 (0)