diff --git a/hasher-matcher-actioner/src/OpenMediaMatch/storage/interface.py b/hasher-matcher-actioner/src/OpenMediaMatch/storage/interface.py index 75fb9420f..0a88c4ed4 100644 --- a/hasher-matcher-actioner/src/OpenMediaMatch/storage/interface.py +++ b/hasher-matcher-actioner/src/OpenMediaMatch/storage/interface.py @@ -22,6 +22,7 @@ import flask +from threatexchange.storage.interfaces import IContentTypeConfigStore from threatexchange.utils import dataclass_json from threatexchange.content_type.content_base import ContentType from threatexchange.signal_type.signal_base import SignalType @@ -50,16 +51,6 @@ class ContentTypeConfig: content_type: t.Type[ContentType] -class IContentTypeConfigStore(metaclass=abc.ABCMeta): - """Interface for accessing ContentType configuration""" - - @abc.abstractmethod - def get_content_type_configs(self) -> t.Mapping[str, ContentTypeConfig]: - """ - Return all installed content types. - """ - - @dataclass class SignalTypeConfig: """ diff --git a/python-threatexchange/threatexchange/storage/__init__.py b/python-threatexchange/threatexchange/storage/__init__.py new file mode 100644 index 000000000..71ca4b12c --- /dev/null +++ b/python-threatexchange/threatexchange/storage/__init__.py @@ -0,0 +1 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. diff --git a/python-threatexchange/threatexchange/cli/storage/interfaces.py b/python-threatexchange/threatexchange/storage/interfaces.py similarity index 100% rename from python-threatexchange/threatexchange/cli/storage/interfaces.py rename to python-threatexchange/threatexchange/storage/interfaces.py