File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ def label_to_col_id(self) -> typing.Mapping[Label, typing.Sequence[str]]:
279
279
def resolve_label_exact (self , label : Label ) -> Optional [str ]:
280
280
"""Returns the column id matching the label if there is exactly
281
281
one such column. If there are multiple columns with the same name,
282
- raises an error. If there is no such column, returns None."""
282
+ raises an error. If there is no such a column, returns None."""
283
283
matches = self .label_to_col_id .get (label , [])
284
284
if len (matches ) > 1 :
285
285
raise ValueError (
@@ -290,7 +290,7 @@ def resolve_label_exact(self, label: Label) -> Optional[str]:
290
290
def resolve_label_exact_or_error (self , label : Label ) -> str :
291
291
"""Returns the column id matching the label if there is exactly
292
292
one such column. If there are multiple columns with the same name,
293
- raises an error. If there is no such column, raises an error too."""
293
+ raises an error. If there is no such a column, raises an error too."""
294
294
col_id = self .resolve_label_exact (label )
295
295
if col_id is None :
296
296
raise ValueError (f"Label { label } not found. { constants .FEEDBACK_LINK } " )
You can’t perform that action at this time.
0 commit comments