You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
check_output should probably operate over what's directly underneath that. tag similarly should apply to all? or just what's underneath? does should apply to uber_decorated_function extract_fields is the last thing that's applied?
Additional context
Thoughts: can we create a linter that reorders decorators?
The text was updated successfully, but these errors were encountered:
Cleaner fix for `@does`. The function is only useful for the node generator
-- not for the rest of DAG creation. This ensures that we don't use it
to handle signatures, rather, we just use the node's return types.
This also adds unit tests, and in the process opened #249 since we need
better clarity and test coverage on decorator interactions.
---- Squashed commits ----
* Fixes does function wrapping #244
In issue #244 types were not being propagated of
the function being wrapped.
This changes that by adding the functools.wraps
decorator.
Adds a unit test to test for two decorators playing nice
together and verified that it's broken before and fixed
afterwards.
* Removes print statement
* Cleaner fix for `@does`. The function is only useful for the
node generator -- not for the rest. This ensures that we don't use it
to handle signatures, rather, we just use the node's return types.
* Adds unit test to cover extract_fields with does
Adds a test to cover Elijah's changes.
In the process I created #249.
Since I think we need to add more unit tests around decorator interactions.
Co-authored-by: Stefan Krawczyk <stefank@cs.stanford.edu>
We are moving repositories! Please see the new version of this issue at DAGWorks-Inc/hamilton#57. Also, please give us a star/update any of your internal links.
Note that everything else (slack community, pypi packages, etc...) will not change at all.
We need to make clear our philosophy and resolution method for functions such as:
Right now it is not clear, nor obvious.
Current behavior
This is what the graph looks like:
So it would be unexpected to see
check_output
over the output ofextract_fields
.Steps to replicate behavior
Function code:
Expected behavior
check_output
should probably operate over what's directly underneath that.tag
similarly should apply to all? or just what's underneath?does
should apply touber_decorated_function
extract_fields
is the last thing that's applied?Additional context
Thoughts: can we create a linter that reorders decorators?
The text was updated successfully, but these errors were encountered: