GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( be813a...3d8811 )
by P.R.
06:43 queued 46s
created

AttribuutGroepKoppeling.__init__()   A

Complexity

Conditions 1

Size

Total Lines 16
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 3
dl 0
loc 16
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
"""
2
Kerapu
3
"""
4 1
import abc
5
6 1
from kerapu.boom.attribuut.Attribuut import Attribuut
7 1
from kerapu.lbz.Subtraject import Subtraject
8
9
10 1
class AttribuutGroepKoppeling:
11
    """
12
    Abstract klasse voor attribuutgroepkoppelingen.
13
    """
14
15
    # ------------------------------------------------------------------------------------------------------------------
16 1
    def __init__(self, attribute_groep_id: int, attribuut: Attribuut):
17
        """
18
        Object constructor.
19
20
        :param int attribute_groep_id: Het ID van deze koppeling.
21
        :param Attribuut attribuut: Het attribuut van deze koppeling.
22
        """
23 1
        self._attribute_groep_id = attribute_groep_id
24
        """
25
        Het ID van deze attribuutgroepkoppeling.
26
27
        :type: int
28
        """
29
30 1
        self._attribuut = attribuut
31 1
        """
32
        Het attribuut van deze koppeling.
33
34
        :type: kerapu.boom.attribuut.Attribuut.Attribuut
35
        """
36
37
    # ------------------------------------------------------------------------------------------------------------------
38 1
    @abc.abstractmethod
39 1
    def test(self, subtraject: Subtraject) -> bool:
40
        """
41
        Test of een subtraject voldoet aan een attribuutgroepkoppeling.
42
43
        :param Subtraject subtraject: Het subtraject.
44
45
        :rtype: bool
46
        """""
47
        pass
48
49
# ----------------------------------------------------------------------------------------------------------------------
50