From 5297ff42fd9c422680320c7d3c3622a85cb4b864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9lie=20Rondot?= Date: Wed, 14 Feb 2024 10:58:48 +0100 Subject: [PATCH] Refactoring: rename 'add_fields_to_schema_among_labels' method into 'rearrange_schema_fields_given_labels' --- frictionless/detector/detector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frictionless/detector/detector.py b/frictionless/detector/detector.py index f5e9d78207..f341a44aea 100644 --- a/frictionless/detector/detector.py +++ b/frictionless/detector/detector.py @@ -420,7 +420,7 @@ def detect_schema( schema.fields, case_sensitive # type: ignore ) - self.add_fields_to_schema_among_labels( + self.rearrange_schema_fields_given_labels( mapped_fields, schema, labels, case_sensitive # type: ignore ) @@ -459,7 +459,7 @@ def mapped_schema_fields_names( return {field.name.lower(): field for field in fields} @staticmethod - def add_fields_to_schema_among_labels( + def rearrange_schema_fields_given_labels( fields_mapped: Dict[str, Field], schema: Schema, labels: List[str],