Skip to content

Commit

Permalink
Fix: Models were not exposed as public in aleph_message.models.
Browse files Browse the repository at this point in the history
This caused issues from Mypy in the form `error: Module "aleph_message.models" does not explicitly export attribute "MessageType"  [attr-defined]`

Solution: Expose models that should be public.
  • Loading branch information
hoh committed Jun 10, 2024
1 parent 34cae38 commit 54a3df0
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion aleph_message/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,41 @@

from .abstract import BaseContent
from .base import Chain, HashType, MessageType
from .execution.base import MachineType, Payment, PaymentType # noqa
from .execution.base import MachineType, Payment, PaymentType
from .execution.instance import InstanceContent
from .execution.program import ProgramContent
from .item_hash import ItemHash, ItemType

__all__ = [
"AggregateContent",
"AggregateMessage",
"AlephMessage",
"AlephMessageType",
"Chain",
"ChainRef",
"ExecutableContent",
"ExecutableMessage",
"ForgetContent",
"ForgetMessage",
"HashType",
"InstanceContent",
"InstanceMessage",
"ItemHash",
"ItemType",
"MachineType",
"MessageConfirmation",
"MessageConfirmationHash",
"MessageType",
"Payment",
"PaymentType",
"PostContent",
"PostMessage",
"ProgramContent",
"ProgramMessage",
"StoreContent",
"StoreMessage",
]


class MongodbId(BaseModel):
"""PyAleph returns an internal MongoDB id"""
Expand Down

0 comments on commit 54a3df0

Please sign in to comment.