Skip to content

Commit d3bb4fa

Browse files
committed
Don't make compilation_status Final (upsets mypyc)
1 parent b79d368 commit d3bb4fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mypy/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,6 @@ def infer_python_executable(options: Options, special_opts: argparse.Namespace)
338338
options.python_executable = python_executable
339339

340340

341-
compilation_status: Final = "no" if __file__.endswith(".py") else "yes"
342-
343341
HEADER: Final = """%(prog)s [-h] [-v] [-V] [more options; see below]
344342
[-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]"""
345343

@@ -559,6 +557,7 @@ def add_invertible_flag(
559557
"-v", "--verbose", action="count", dest="verbosity", help="More verbose messages"
560558
)
561559

560+
compilation_status = "no" if __file__.endswith(".py") else "yes"
562561
general_group.add_argument(
563562
"-V",
564563
"--version",

0 commit comments

Comments
 (0)