@@ -529,7 +529,7 @@ def create_initial_version(cls, concept, **kwargs):
529529 def create_new_version_for (
530530 cls , instance , data , user , create_parent_version = True , add_prev_version_children = True ,
531531 _hierarchy_processing = False , is_patch = False
532- ): # pylint: disable=too-many-arguments
532+ ): # pylint: disable=too-many-arguments,too-many-locals
533533 mappings_payload = data .pop ('mappings_payload' , None )
534534 prev_latest = Concept .objects .filter (
535535 mnemonic = instance .mnemonic , parent_id = instance .parent_id , is_latest_version = True
@@ -576,7 +576,7 @@ def create_new_version_for(
576576 )
577577 if has_mapping_errors :
578578 instance .rollback_latest_version_to (prev_latest )
579- errors ['mappings' ] = instance ._get_errors_from_mappings (mappings_result )
579+ errors ['mappings' ] = instance ._get_errors_from_mappings (mappings_result ) # pylint: disable=protected-access
580580
581581 return errors
582582
@@ -732,7 +732,7 @@ def rollback_latest_version_to(self, prev_latest):
732732 def find_direct_mapping (self , mapping_id ):
733733 return self .get_unidirectional_mappings ().filter (mnemonic = str (mapping_id )).first () if mapping_id else None
734734
735- def upsert_or_delete_mappings (self , mappings_payload , user ):
735+ def upsert_or_delete_mappings (self , mappings_payload , user ): # pylint: disable=too-many-locals,too-many-branches,too-many-statements
736736 from core .mappings .models import Mapping
737737 results = []
738738 any_with_errors = False
0 commit comments