Passed
Push — master ( 817ef7...81ab82 )
by Steve
01:43
created

SpecialDepDefinition.get_instance()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1.037

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
ccs 2
cts 3
cp 0.6667
rs 10
c 0
b 0
f 0
cc 1
nop 2
crap 1.037
1 1
from abc import ABC, abstractmethod
2 1
from typing import Generic, TypeVar
3
4 1
X = TypeVar("X")
5
6
7 1
class SpecialDepDefinition(ABC, Generic[X]):
8 1
    @abstractmethod
9 1
    def get_instance(self, build_func) -> X:
10
        pass
11