-
Notifications
You must be signed in to change notification settings - Fork 2
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
compute
returns dict
instead of tuple
.
#44
Conversation
src/sciline/task_graph.py
Outdated
@@ -37,7 +37,7 @@ def __init__( | |||
def compute( | |||
self, | |||
keys: Optional[ | |||
Union[type, Tuple[type, ...], Item[T], Tuple[Item[T], ...]] | |||
Union[type, Tuple[type, ...], Item[T], Tuple[Item[T], ...], None] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the None
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah... right! It was meant to be either Optional
or Union[type, Tuple[type, ...], Item[T], Tuple[Item[T], ...], None]
Can we use
Union[type, Tuple[type, ...], Item[T], Tuple[Item[T], ...], None]
instead of Optional
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you prefer that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't really matter since they are basically the same.
Just less lines... I guess...? I'll revert it anyways : D
Co-authored-by: Simon Heybrock <[email protected]>
Fixes #27