Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stateful blocks #16

Draft
wants to merge 6 commits into
base: jeff/iteration-and-functions
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
get sig from on_next instead of call
  • Loading branch information
39bytes committed Dec 21, 2023
commit b3000904731869e0f953e4605fe2d4e8468fcd54
2 changes: 1 addition & 1 deletion captain/lib/block_import.py
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@ def import_blocks(blocks_dir: str) -> Mapping[BlockType, BlockImport]:
raise ImportError(
f"Class block imported from {block_path} does not inherit from FlojoyBlock"
)
sig = inspect.signature(block.__call__)
sig = inspect.signature(block.on_next)
# methods have a self parameter that needs to be ignored
parameters = [
param