@@ -339,7 +339,7 @@ def _with_from_imports(
339339 )
340340 if comment :
341341 single_import_line += (
342- f"{ (comments and ';' ) or config .comment_prefix } " f" { comment } "
342+ f"{ (comments and ';' ) or config .comment_prefix } { comment } "
343343 )
344344 if from_import in as_imports :
345345 if (
@@ -459,8 +459,7 @@ def _with_from_imports(
459459 # keep the name in the main list and hoist the comment to the statement.
460460 if (
461461 comment .lower ().startswith ("noqa" )
462- and config .multi_line_output
463- == wrap .Modes .HANGING_INDENT # type: ignore[attr-defined]
462+ and config .multi_line_output == wrap .Modes .HANGING_INDENT # type: ignore[attr-defined] # noqa: E501
464463 ):
465464 comments = list (comments ) if comments else []
466465 comments .append (comment )
@@ -479,7 +478,7 @@ def _with_from_imports(
479478 comment_prefix = config .comment_prefix ,
480479 )
481480 single_import_line += (
482- f"{ (use_comments and ';' ) or config .comment_prefix } " f" { comment } "
481+ f"{ (use_comments and ';' ) or config .comment_prefix } { comment } "
483482 )
484483 output .append (wrap .line (single_import_line , parsed .line_separator , config ))
485484
@@ -519,8 +518,7 @@ def _with_from_imports(
519518 if (
520519 len (import_statement ) > config .line_length
521520 and len (from_import_section ) > 0
522- and config .multi_line_output
523- not in (wrap .Modes .GRID , wrap .Modes .VERTICAL ) # type: ignore
521+ and config .multi_line_output not in (wrap .Modes .GRID , wrap .Modes .VERTICAL ) # type: ignore # noqa: E501
524522 ):
525523 do_multiline_reformat = True
526524
0 commit comments