Passed
Push — master ( 29ab2b...f3ee24 )
by Steve
01:53
created

lagom.util.functional   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A arity() 0 2 1
1 1
import inspect
2 1
from typing import Callable
3
4
5 1
def arity(func: Callable) -> int:
6
    return len(inspect.signature(func).parameters)
7