Skip to content

Commit a1cdc55

Browse files
committed
Fix missing type hint
1 parent cf07444 commit a1cdc55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/torchjd/autogram/_gramian_computer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from torch import Tensor
55
from torch.utils._pytree import PyTree
66

7+
from torchjd.autogram._jacobian_computer import JacobianComputer
8+
79

810
class GramianComputer(ABC):
911
@abstractmethod
@@ -24,7 +26,7 @@ def reset(self):
2426

2527

2628
class JacobianBasedGramianComputer(GramianComputer, ABC):
27-
def __init__(self, jacobian_computer):
29+
def __init__(self, jacobian_computer: JacobianComputer):
2830
self.jacobian_computer = jacobian_computer
2931

3032
@staticmethod

0 commit comments

Comments
 (0)