Test Failed
Pull Request — master (#777)
by
unknown
03:44
created

MySafeConstructor.add_bool()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
from yaml.constructor import SafeConstructor
2
3
4
# Create custom safe constructor class that inherits from SafeConstructor
5
class MySafeConstructor(SafeConstructor):
6
7
    # Create new method to handle boolean logic
8
    def add_bool(self, node):
9
        return self.construct_scalar(node)
10
11
12