Skip to content

Commit

Permalink
Add dep
Browse files Browse the repository at this point in the history
  • Loading branch information
cgalelli committed Oct 15, 2024
1 parent 14344e9 commit e868dd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gammapy/modeling/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import itertools
import logging
import collections.abc
from abc import ABC

import numpy as np
from astropy.table import Table, QTable
from gammapy.utils.pbar import progress_bar
Expand Down Expand Up @@ -899,7 +901,7 @@ def _repr_html_(self):
return f"<pre>{html.escape(str(self))}</pre>"


class FitResults(collections.abc.MutableSequence):
class FitResults(collections.abc.MutableSequence, ABC):
def __init__(self, results, axis_name=None):
if np.array([not isinstance(result, FitResult) for result in results]).any():
raise TypeError(f"Elements in {results!r} are not FitResult objects")
Expand Down

0 comments on commit e868dd8

Please sign in to comment.