-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
Add and_ converter #618
Add and_ converter #618
Conversation
7b1403b
to
36eef7e
Compare
src/attr/converters.py
Outdated
:param converters: Arbitrary number of converters. | ||
:type converters: callables | ||
|
||
.. versionadded:: ??? |
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.
How can one tell the versionadded?
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's in attr.__init__
without the .dev0
suffix.
Lint error: tests/test_converters.py:13:1: F401 'attr.s' imported but unused |
No tests for the |
Looking at the code, I find the name |
Thanks, removed it |
Certainly! |
I'm not sure how to test it : |
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.
Looks good overall, please address what I've mentioned.
The answer to how to test a nested function: you find a way to exercise it. :) But I believe you do that now?
src/attr/converters.py
Outdated
:param converters: Arbitrary number of converters. | ||
:type converters: callables | ||
|
||
.. versionadded:: ??? |
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's in attr.__init__
without the .dev0
suffix.
Well I did, but it was mentioned that I missed testing the nested function + the codecov check failed so I just wondering how can I pass it |
4857681
to
71b52a1
Compare
@hynek it seems I still miss some.. |
Looks like either out-of-date branch or another codecov glitch. I think we're done here, thank you for your patience! |
@hynek Many thanks! |
* Add and_ converter * update _make * Refactored code according to review * fixed some linting errors * minor refactor * fixed CR comments * fixed CR comment #2 Co-authored-by: Hynek Schlawack <[email protected]>
Pull Request Check List
This is just a reminder about the most common mistakes. Please make sure that you tick all appropriate boxes. But please read our contribution guide at least once, it will save you unnecessary review cycles!
If an item doesn't apply to your pull request, check it anyway to make it apparent that there's nothing to do.
.pyi
).tests/typing_example.py
.docs/api.rst
by hand.@attr.s()
have to be added by hand too.versionadded
,versionchanged
, ordeprecated
directives..rst
files is written using semantic newlines.changelog.d
.If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!