Fix D105: Missing docstring in magic method (PEP257)

Change-Id: If4c48aa3f37093295d3d934343c4f28e40c21af0
This commit is contained in:
Dolph Mathews 2016-05-16 17:12:45 -05:00 committed by Steve Martinelli
parent a2afaa9434
commit c801117ef4
2 changed files with 6 additions and 2 deletions

View File

@ -98,6 +98,11 @@ class TestResponse(requests.Response):
self.status_code = data
def __eq__(self, other):
"""Test if the response is equivalent to another response.
This works by comparing the attribute dictionaries of both TestResponse
instances.
"""
return self.__dict__ == other.__dict__
@property

View File

@ -40,8 +40,7 @@ commands = oslo_debug_helper {posargs}
# D102: Missing docstring in public method
# D103: Missing docstring in public function
# D104: Missing docstring in public package
# D105: Missing docstring in magic method
ignore = D100,D101,D102,D103,D104,D105
ignore = D100,D101,D102,D103,D104
show-source = True
exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*