Skip to content

Commit e8b121e

Browse files
committed
Pacify mypy
1 parent c3f6710 commit e8b121e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

torch/distributions/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class _InverseTransform(Transform):
205205
"""
206206
def __init__(self, transform: Transform):
207207
super(_InverseTransform, self).__init__(cache_size=transform._cache_size)
208-
self._inv = transform
208+
self._inv: Transform = transform
209209

210210
@constraints.dependent_property(is_discrete=False)
211211
def domain(self):

0 commit comments

Comments
 (0)