@@ -270,7 +270,7 @@ def add_assembly_options(
270270 children_list = []
271271
272272 for label , description , value , number_type in zip (
273- labels , descriptions , values , number_types
273+ labels , descriptions , values , number_types , strict = True
274274 ):
275275 children_list .append (
276276 {
@@ -644,7 +644,9 @@ def export(
644644 boundary_data .text = "\n " .join (
645645 [
646646 str (patch_id + index_offset ) + " " + str (local_face_id + 1 )
647- for (patch_id , local_face_id ) in zip (* face_id_list )
647+ for (patch_id , local_face_id ) in zip (
648+ * face_id_list , strict = True
649+ )
648650 ]
649651 )
650652 else :
@@ -657,7 +659,9 @@ def export(
657659 boundary_data .text = "\n " .join (
658660 [
659661 str (sid + index_offset ) + " " + str (bid + 1 )
660- for (sid , bid ) in zip (boundary_spline , boundary_face )
662+ for (sid , bid ) in zip (
663+ boundary_spline , boundary_face , strict = True
664+ )
661665 ]
662666 )
663667 ###
@@ -685,7 +689,9 @@ def export(
685689 bc .text = "\n " .join (
686690 [
687691 str (sid ) + " " + str (bid + 1 )
688- for (sid , bid ) in zip (bc_data_i [0 ], bc_data_i [1 ])
692+ for (sid , bid ) in zip (
693+ bc_data_i [0 ], bc_data_i [1 ], strict = True
694+ )
689695 ]
690696 )
691697
@@ -704,9 +710,9 @@ def export(
704710 as_base64 = as_base64 ,
705711 field_mask = field_mask ,
706712 )
707- field_xml .find ("MultiPatch" ).find ("patches" ). text = (
708- f" { index_offset } " f" { n_patches - 1 + index_offset } "
709- )
713+ field_xml .find ("MultiPatch" ).find (
714+ "patches "
715+ ). text = f" { index_offset } { n_patches - 1 + index_offset } "
710716 if int (_python_version .split ("." )[1 ]) >= 9 and indent :
711717 _ET .indent (field_xml )
712718 file_content = _ET .tostring (field_xml )
@@ -723,7 +729,7 @@ def export(
723729 if n_patches != len (multipatch .patches ):
724730 raise RuntimeError ("Help - some patches were not recognised" )
725731
726- patch_range .text = f"{ index_offset } " f" { n_patches - 1 + index_offset } "
732+ patch_range .text = f"{ index_offset } { n_patches - 1 + index_offset } "
727733
728734 # Add additional options to the xml file
729735 if additional_blocks is not None :
@@ -976,12 +982,11 @@ def make_dictionary(ETelement):
976982 list_of_options .append (make_dictionary (child ))
977983 else :
978984 _debug (
979- f"Found unsupported keyword { child .tag } , which will be"
980- " ignored"
985+ f"Found unsupported keyword { child .tag } , which will be ignored"
981986 )
982987 continue
983988
984- _debug (f"Found a total of { len (list_of_splines )} " f" BSplines and NURBS" )
989+ _debug (f"Found a total of { len (list_of_splines )} BSplines and NURBS" )
985990 multipatch = _Multipatch (list_of_splines )
986991 if interface_array is not None :
987992 if invalid_integer in interface_array :
0 commit comments