File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ exclude =
11
11
12
12
max-line-length = 120
13
13
14
- max-complexity = 20
14
+ max-complexity = 10
15
15
16
16
ignore =
17
17
# ignore `self`, `cls` markers of flake8-annotations>=2.0
Original file line number Diff line number Diff line change @@ -54,11 +54,11 @@ def __init__(self, schema_version: 'SchemaVersion') -> None:
54
54
# this is the def that is used for generating the documentation
55
55
super ().__init__ (schema_version )
56
56
57
- if _missing_deps_error :
57
+ if _missing_deps_error : # noqa:C901
58
58
__MDERROR = _missing_deps_error
59
59
60
60
def validate_str (self , data : str ) -> Optional [ValidationError ]:
61
- raise self .__MDERROR [0 ] # from functionality_not_implemented_error [1]
61
+ raise self .__MDERROR [0 ] from self . __MDERROR [1 ]
62
62
63
63
else :
64
64
def validate_str (self , data : str ) -> Optional [ValidationError ]:
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def __init__(self, schema_version: 'SchemaVersion') -> None:
51
51
__MDERROR = _missing_deps_error
52
52
53
53
def validate_str (self , data : str ) -> Optional [ValidationError ]:
54
- raise self .__MDERROR [0 ] # from functionality_not_implemented_error [1]
54
+ raise self .__MDERROR [0 ] from self . __MDERROR [1 ]
55
55
else :
56
56
def validate_str (self , data : str ) -> Optional [ValidationError ]:
57
57
return self ._validata_data (
You can’t perform that action at this time.
0 commit comments