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

Method signature improvements #800

Merged
merged 3 commits into from
Oct 24, 2017

Conversation

rpkilby
Copy link
Collaborator

@rpkilby rpkilby commented Oct 20, 2017

  • Rename f => field in FilterSet classmethods
  • Reorder Filter.__init__ args to be mostly keyword-only (depends on going py3-only).

@rpkilby rpkilby changed the title [2.x] Method signature improvements Method signature improvements Oct 20, 2017
Copy link
Owner

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

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

I like this.

@rpkilby
Copy link
Collaborator Author

rpkilby commented Oct 24, 2017

Give me a sec to resolve the conflicts

@codecov-io
Copy link

Codecov Report

Merging #800 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #800   +/-   ##
========================================
  Coverage    97.71%   97.71%           
========================================
  Files           15       15           
  Lines         1138     1138           
========================================
  Hits          1112     1112           
  Misses          26       26
Impacted Files Coverage Δ
django_filters/filters.py 98.43% <100%> (ø) ⬆️
django_filters/filterset.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 89370e4...f0d5159. Read the comment docs.

@carltongibson carltongibson merged commit b3e8690 into carltongibson:develop Oct 24, 2017
@rpkilby rpkilby deleted the improve-method-sig branch October 24, 2017 07:33
carltongibson pushed a commit that referenced this pull request Oct 24, 2017
* Improve argument names in FilterSet methods

* Reorder Filter args to be keyword-only

* Reorder FilterSet kwargs
carltongibson pushed a commit that referenced this pull request Oct 24, 2017
* Improve argument names in FilterSet methods

* Reorder Filter args to be keyword-only

* Reorder FilterSet kwargs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants