Skip to content

Commit dbefab1

Browse files
committed
Fix type hint
1 parent a9b382a commit dbefab1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

polygraph/metrics/base/mmd.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,7 @@ def _generate_mmd_samples(
197197
@abstractmethod
198198
def compute(
199199
*args, **kwargs
200-
) -> Union[
201-
MetricInterval,
202-
Dict[str, float],
203-
Tuple[Union[MetricInterval, Dict[str, float]], np.ndarray],
204-
]: ...
200+
) -> MetricInterval: ...
205201

206202

207203
class DescriptorMMD2Interval(_DescriptorMMD2Interval, GenerationMetricInterval):

0 commit comments

Comments
 (0)