Skip to content

Commit

Permalink
type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
jla-gardner committed Feb 12, 2024
1 parent 3c1fc3a commit 82453c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/graph_pes/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ def forward(
The transformed data.
"""

# add type hints to play nicely with mypy
def __call__(
self,
x: Shaped[Tensor, "shape ..."],
graph: AtomicGraph | AtomicGraphBatch,
) -> Shaped[Tensor, "shape ..."]:
return super().__call__(x, graph)

@abstractmethod
def inverse(
self,
Expand Down

0 comments on commit 82453c5

Please sign in to comment.