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

Rename convert to converter #315

Merged
merged 6 commits into from Dec 23, 2017
Merged

Rename convert to converter #315

merged 6 commits into from Dec 23, 2017

Conversation

hynek
Copy link
Member

@hynek hynek commented Dec 16, 2017

Fixes #307

@hynek hynek added this to the 17.4 milestone Dec 16, 2017
@codecov
Copy link

codecov bot commented Dec 16, 2017

Codecov Report

Merging #315 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #315   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           9      9           
  Lines         731    745   +14     
  Branches      152    156    +4     
=====================================
+ Hits          731    745   +14
Impacted Files Coverage Δ
src/attr/_make.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3861d1...bb94fca. Read the comment docs.

@hynek
Copy link
Member Author

hynek commented Dec 20, 2017

anyone? 😇

btw @RonnyPfannschmidt pretty sure pytest will have to update – I hope you have activated warnings? ;)

docs/api.rst Outdated
@@ -90,7 +90,7 @@ Core
... class C(object):
... x = attr.ib()
>>> attr.fields(C).x
Attribute(name='x', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}), type=None)
Attribute(name='x', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}), type=None, converter=None)

This comment was marked as spam.

Copy link

@wsanchez wsanchez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but the repr including both convert and converter bugs me… seems like only one should be included, no?

@hynek
Copy link
Member Author

hynek commented Dec 21, 2017

Yeah, done! Also I’ve added a warning if someone accesses that attribute.

@hynek hynek merged commit bc0b437 into master Dec 23, 2017
@hynek hynek deleted the convert-converter branch December 23, 2017 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants