Skip to content

Commit

Permalink
Update entrypoint field to also accept strings for backwards compat…
Browse files Browse the repository at this point in the history
…ibility.
  • Loading branch information
MHHukiewitz committed Nov 22, 2023
1 parent e2a1122 commit daafc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aleph_message/models/execution/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CodeContent(HashableModel):
"""Reference to the StoreMessage that contains the code or program to be executed."""

encoding: Encoding
entrypoint: Entrypoint
entrypoint: Entrypoint | str
ref: ItemHash # Must reference a StoreMessage
use_latest: bool = False

Expand Down

0 comments on commit daafc8f

Please sign in to comment.