File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ exclude =
1111
1212max-line-length = 120
1313
14- max-complexity = 20
14+ max-complexity = 10
1515
1616ignore =
1717 # 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:
5454 # this is the def that is used for generating the documentation
5555 super ().__init__ (schema_version )
5656
57- if _missing_deps_error :
57+ if _missing_deps_error : # noqa:C901
5858 __MDERROR = _missing_deps_error
5959
6060 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 ]
6262
6363 else :
6464 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:
5151 __MDERROR = _missing_deps_error
5252
5353 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 ]
5555 else :
5656 def validate_str (self , data : str ) -> Optional [ValidationError ]:
5757 return self ._validata_data (
You can’t perform that action at this time.
0 commit comments