aiogremlin.process.traversal   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 9
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A AsyncTraversalStrategies.apply_strategies() 0 5 3
1
import asyncio
2
3
from gremlin_python.process import traversal
4
5
6
class AsyncTraversalStrategies(traversal.TraversalStrategies):
7
8
    async def apply_strategies(self, traversal):
9
        for traversal_strategy in self.traversal_strategies:
10
            func = traversal_strategy.apply(traversal)
11
            if asyncio.iscoroutine(func):
12
                await func
13