-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Entrypoint class and update CodeContent model to reference Entrypoint. Allows distinction between different types of plain code executions and more freedom in defining how it should be run. * Update `entrypoint` field to also accept strings for backwards compatibility. * Use Union for Python 3.9 compatibility * Remove Entrypoint model and integrate some fields into CodeContent * Extend parsing of `ProgramMessage` to account for default values Default values in `ProgramContent` could make `item_content` verification fail, as they get added upon parsing. Creating `item_content` now triggers a parsing of `ProgramContent` and dumps its resulting struct. * Fix formatting * Fix typing * Format with isort & black * Fix rebase * Fix typing for mypy * Change all new fields to have None default values to not break backward compatibility
- Loading branch information
1 parent
1f5e910
commit 92ad3e4
Showing
5 changed files
with
41 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters