Skip to content

Commit d913e9f

Browse files
committed
shifted type ignore to separate line
1 parent c0af112 commit d913e9f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fileformats/core/mixin.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,11 @@ def register_converter(
657657
describe_task(converter_spec.task),
658658
)
659659
return # actually the same task but just imported twice for some reason
660+
prev_unclassified = prev.unclassified # type: ignore[attr-defined]
661+
unclassified = cls.unclassified # type: ignore[attr-defined]
660662
raise FormatDefinitionError(
661-
f"Cannot register converter from {prev.unclassified} "
662-
f"to {cls.unclassified} with non-wildcard classifiers " # type: ignore[attr-defined]
663+
f"Cannot register converter from {prev_unclassified} "
664+
f"to {unclassified} with non-wildcard classifiers "
663665
f"{list(prev.non_wildcard_classifiers())}, {describe_task(converter_spec.task)}, "
664666
f"because there is already one registered, {describe_task(prev_spec.task)}"
665667
)

0 commit comments

Comments
 (0)