Skip to content

Commit 6403620

Browse files
committed
moved docstrings into functions
1 parent 4f1358a commit 6403620

File tree

1 file changed

+12
-24
lines changed

1 file changed

+12
-24
lines changed

redis/commands/graph/query_result.py

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -325,74 +325,62 @@ def _get_value(prop, statistics):
325325
def _get_stat(self, stat):
326326
return self.statistics[stat] if stat in self.statistics else 0
327327

328-
"""Returns the number of labels added in the query"""
329-
330328
@property
331329
def labels_added(self):
330+
"""Returns the number of labels added in the query"""
332331
return self._get_stat(LABELS_ADDED)
333332

334-
"""Returns the number of labels removed in the query"""
335-
336333
@property
337334
def labels_removed(self):
335+
"""Returns the number of labels removed in the query"""
338336
return self._get_stat(LABELS_REMOVED)
339337

340-
"""Returns the number of nodes created in the query"""
341-
342338
@property
343339
def nodes_created(self):
340+
"""Returns the number of nodes created in the query"""
344341
return self._get_stat(NODES_CREATED)
345342

346-
"""Returns the number of nodes deleted in the query"""
347-
348343
@property
349344
def nodes_deleted(self):
345+
"""Returns the number of nodes deleted in the query"""
350346
return self._get_stat(NODES_DELETED)
351347

352-
"""Returns the number of properties set in the query"""
353-
354348
@property
355349
def properties_set(self):
350+
"""Returns the number of properties set in the query"""
356351
return self._get_stat(PROPERTIES_SET)
357352

358-
"""Returns the number of properties removed in the query"""
359-
360353
@property
361354
def properties_removed(self):
355+
"""Returns the number of properties removed in the query"""
362356
return self._get_stat(PROPERTIES_REMOVED)
363357

364-
"""Returns the number of relationships created in the query"""
365-
366358
@property
367359
def relationships_created(self):
360+
"""Returns the number of relationships created in the query"""
368361
return self._get_stat(RELATIONSHIPS_CREATED)
369362

370-
"""Returns the number of relationships deleted in the query"""
371-
372363
@property
373364
def relationships_deleted(self):
365+
"""Returns the number of relationships deleted in the query"""
374366
return self._get_stat(RELATIONSHIPS_DELETED)
375367

376-
"""Returns the number of indices created in the query"""
377-
378368
@property
379369
def indices_created(self):
370+
"""Returns the number of indices created in the query"""
380371
return self._get_stat(INDICES_CREATED)
381372

382-
"""Returns the number of indices deleted in the query"""
383-
384373
@property
385374
def indices_deleted(self):
375+
"""Returns the number of indices deleted in the query"""
386376
return self._get_stat(INDICES_DELETED)
387377

388-
"""Returns whether or not the query execution plan was cached"""
389-
390378
@property
391379
def cached_execution(self):
380+
"""Returns whether or not the query execution plan was cached"""
392381
return self._get_stat(CACHED_EXECUTION) == 1
393382

394-
"""Returns the server execution time of the query"""
395-
396383
@property
397384
def run_time_ms(self):
385+
"""Returns the server execution time of the query"""
398386
return self._get_stat(INTERNAL_EXECUTION_TIME)

0 commit comments

Comments
 (0)