diff --git a/deeprank2/molstruct/aminoacid.py b/deeprank2/molstruct/aminoacid.py index 88c615a87..189b5a564 100644 --- a/deeprank2/molstruct/aminoacid.py +++ b/deeprank2/molstruct/aminoacid.py @@ -1,6 +1,7 @@ from enum import Enum import numpy as np +from numpy.typing import NDArray class Polarity(Enum): @@ -108,7 +109,7 @@ def hydrogen_bond_acceptors(self) -> int: return self._hydrogen_bond_acceptors @property - def onehot(self) -> np.ndarray: + def onehot(self) -> NDArray: if self._index is None: raise ValueError( f"Amino acid {self._name} index is not set, thus no onehot can be computed."