Skip to content

Commit

Permalink
Pacify mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzo committed Jan 22, 2021
1 parent c3f6710 commit e8b121e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/distributions/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class _InverseTransform(Transform):
"""
def __init__(self, transform: Transform):
super(_InverseTransform, self).__init__(cache_size=transform._cache_size)
self._inv = transform
self._inv: Transform = transform

@constraints.dependent_property(is_discrete=False)
def domain(self):
Expand Down

0 comments on commit e8b121e

Please sign in to comment.