@@ -126,8 +126,9 @@ def main(script_path: Optional[str],
126
126
stdout .flush ()
127
127
128
128
if options .write_baseline :
129
- stdout .write (formatter .style ("Baseline successfully written to {}\n " .format (options .baseline_file ),
130
- "green" , bold = True ))
129
+ stdout .write (
130
+ formatter .style ("Baseline successfully written to {}\n " .format (options .baseline_file ),
131
+ "green" , bold = True ))
131
132
code = 0
132
133
133
134
if options .install_types and not options .non_interactive :
@@ -300,7 +301,7 @@ def infer_python_executable(options: Options,
300
301
301
302
302
303
DESCRIPTION : Final = """
303
- Basedmypy is a program that will type check your Python code.
304
+ Basedmypy is a program that will type check your Python code.
304
305
305
306
Based? Based on what?
306
307
@@ -516,8 +517,8 @@ def add_invertible_flag(flag: str,
516
517
help = "Configuration file, must have a [mypy] section "
517
518
"(defaults to {})" .format (', ' .join (defaults .CONFIG_FILES )))
518
519
add_invertible_flag ('--no-warn-unused-configs' , default = True , dest = "warn_unused_configs" ,
519
- help = "Don't warn about unused '[mypy-<pattern>]' or '[[tool.mypy.overrides]]' "
520
- "config sections" ,
520
+ help = "Don't warn about unused '[mypy-<pattern>]' or "
521
+ "'[[tool.mypy.overrides]]' config sections" ,
521
522
group = config_group )
522
523
523
524
imports_group = parser .add_argument_group (
@@ -575,7 +576,8 @@ def add_invertible_flag(flag: str,
575
576
title = 'Allow dynamic typing' ,
576
577
description = "Allow the use of the dynamic 'Any' type under certain conditions." )
577
578
disallow_any_group .add_argument (
578
- '--allow-any-unimported' , default = True , action = 'store_false' , dest = "disallow_any_unimported" ,
579
+ '--allow-any-unimported' , default = True , action = 'store_false' ,
580
+ dest = "disallow_any_unimported" ,
579
581
help = "Allow Any types resulting from unfollowed imports" )
580
582
disallow_any_group .add_argument (
581
583
'--allow-any-expr' , default = True , action = 'store_false' , dest = "disallow_any_expr" ,
@@ -614,7 +616,8 @@ def add_invertible_flag(flag: str,
614
616
add_invertible_flag ('--no-check-untyped-defs' , default = True , dest = "check_untyped_defs" ,
615
617
help = "Don't type check the interior of functions without type annotations" ,
616
618
group = untyped_group )
617
- add_invertible_flag ('--allow-untyped-decorators' , default = True , dest = "disallow_untyped_decorators" ,
619
+ add_invertible_flag ('--allow-untyped-decorators' , default = True ,
620
+ dest = "disallow_untyped_decorators" ,
618
621
help = "Allow decorating typed functions with untyped decorators" ,
619
622
group = untyped_group )
620
623
@@ -647,7 +650,8 @@ def add_invertible_flag(flag: str,
647
650
help = "Do not warn about unneeded '# type: ignore' comments" ,
648
651
group = lint_group )
649
652
add_invertible_flag ('--no-warn-no-ignore-code' , default = False ,
650
- help = "Do not warn about '# type: ignore' comments that don't specify the error code" ,
653
+ help = "Do not warn about '# type: ignore' comments "
654
+ "that don't specify the error code" ,
651
655
group = lint_group )
652
656
add_invertible_flag ('--no-warn-no-return' , dest = 'warn_no_return' , default = True ,
653
657
help = "Do not warn about functions that end without returning" ,
0 commit comments