Passed
Push — dev ( 3c73d5...40dcc8 )
by Konstantinos
01:24
created

green_magic.data.convert   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A DatapointsTransformer.transform() 0 2 1
1
import attr
2
3
4
@attr.s
5
class DatapointsTransformer:
6
    _datapoints = attr.ib(init=True)
7
    transformer = attr.ib(init=True)
8
9
    def transform(self, **kwargs):
10
        return self.transformer.transform(self._datapoints, **kwargs)
11