-
Notifications
You must be signed in to change notification settings - Fork 929
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
give name of function inside incorrect parameters error #568
Conversation
All python objects should be able to resolve repr so this will be a bit more rubust against all types of callables.
This reverts commit 58636d9.
@lorenabalan I implemented the change to move Looks like I ran into the same segfault/timeout error in testing. Can you rerun them? |
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.
Thanks for your patience with this! Nearly there.
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.
Awesome! Can you please remove temp1
file? 😅 I think it's been accidentally committed at some point.
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.
Nice! 👍
We try follow a convention where all f-string parts are prefixed with f even if there are no variables inside. It just for the consistency with how PyCharm, for example, breaks down such strings. Co-authored-by: Dmitrii Deriabin <[email protected]>
Thanks for the help @DmitriiDeriabinQB ! All passing now. |
Description
I messed up my author config, I rebased and opened this new PR similar to #538
This is a quick and simple step towards the right direction to resolve #495.
Development notes
I ran
kedro new
, and broke one of the nodes. There is a comparison of the current error and the updated error below. This error is also inspected by the test framework.Current Error
Does not give much information to what node caused the TypeError. While this is generally easy to figure out on small pipelines, larger pipelines can be quite intense to figure out where the error came from. Any additional information would be greatly appreciated.
Updated Error
The updated error will give the name of the function for full functions, but does not provide better messaging for lambdas.
Feedback
func.__code__.co_name
method?Checklist
RELEASE.md
fileNOTE No new tests were created, only modification of existing tests.
Notice
I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":
I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorised to submit this contribution on behalf of the original creator(s) or their licensees.
I certify that the use of this contribution as authorised by the Apache 2.0 license does not violate the intellectual property rights of anyone else.
conversation from #538