Completed
Push — master ( 449e73...c6f33b )
by Ionel Cristian
01:09
created

Foo.a()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 3
rs 10
1
""" s@tart
2
1
3
2
4
3
5
4
6
"""  # end
7
class Foo(object):
8
9
    @staticmethod
10
    def a(*args):
11
        return args
12
13
    b = staticmethod(
14
        lambda *a:
15
            a
16
    )
17
18
19
def deco(_):
20
    return lambda func: lambda *a: func(*a)
21
22
23
@deco(1)
24
@deco(2)
25
@deco(3)
26
@deco(4)
27
def a(*args):
28
    return args
29
30
31
Foo.a(
32
    1,
33
    2,
34
    3,
35
)
36
Foo.b(
37
    1,
38
    2,
39
    3,
40
)
41
a()
42