Skip to content

Commit e0ccde4

Browse files
hugovkhonzakral
authored andcommitted
Convert docstrings to triple double-quotes
1 parent e156a9a commit e0ccde4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

elasticsearch_dsl/mapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def field(self, name, *args, **kwargs):
3939
return self
4040

4141
def _collect_fields(self):
42-
" Iterate over all Field objects within, including multi fields. "
42+
""" Iterate over all Field objects within, including multi fields. """
4343
for f in itervalues(self.properties.to_dict()):
4444
yield f
4545
# multi fields

examples/parent_child.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Question(Post):
9292

9393
@classmethod
9494
def _matches(cls, hit):
95-
" Use Question class for parent documents "
95+
""" Use Question class for parent documents """
9696
return hit['_source']['question_answer'] == 'question'
9797

9898
@classmethod
@@ -146,7 +146,7 @@ class Answer(Post):
146146

147147
@classmethod
148148
def _matches(cls, hit):
149-
" Use Answer class for child documents with child name 'answer' "
149+
""" Use Answer class for child documents with child name 'answer' """
150150
return isinstance(hit['_source']['question_answer'], dict) \
151151
and hit['_source']['question_answer'].get('name') == 'answer'
152152

@@ -170,7 +170,7 @@ def save(self, **kwargs):
170170

171171

172172
def setup():
173-
" Create an IndexTemplate and save it into elasticsearch. "
173+
""" Create an IndexTemplate and save it into elasticsearch. """
174174
index_template = Post._index.as_template('base')
175175
index_template.save()
176176

0 commit comments

Comments
 (0)