Skip to content

Commit add8dac

Browse files
🔵 rename
1 parent 70aadac commit add8dac

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

frictionless/detector/detector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ def detect_schema(
415415
note = '"schema_sync" requires unique labels in the header'
416416
raise FrictionlessException(note)
417417

418-
mapped_fields = self.mapped_schema_fields_names(
419-
schema.fields, # type: ignore
418+
mapped_fields = self.map_schema_fields_by_name(
419+
schema.fields,
420420
case_sensitive,
421421
)
422422

@@ -445,7 +445,7 @@ def detect_schema(
445445
return schema
446446

447447
@staticmethod
448-
def mapped_schema_fields_names(
448+
def map_schema_fields_by_name(
449449
fields: List[Field], case_sensitive: bool
450450
) -> Dict[str, Field]:
451451
"""Create a dictionnary to map field names with schema fields"""

frictionless/resources/table.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ def row_stream():
382382
for field in self.schema.fields:
383383
self.remove_missing_required_label_from_field_info(field, field_info)
384384

385-
# Create row stream
386385
self.__row_stream = row_stream()
387386

388387
def remove_missing_required_label_from_field_info(

0 commit comments

Comments
 (0)