Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Don't make compilation_status Final (upsets mypyc)
  • Loading branch information
ilevkivskyi committed Sep 9, 2025
commit d3bb4fadc92a547b285b6c51a9d2ab7ac94d8414
3 changes: 1 addition & 2 deletions mypy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,6 @@ def infer_python_executable(options: Options, special_opts: argparse.Namespace)
options.python_executable = python_executable


compilation_status: Final = "no" if __file__.endswith(".py") else "yes"

HEADER: Final = """%(prog)s [-h] [-v] [-V] [more options; see below]
[-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]"""

Expand Down Expand Up @@ -559,6 +557,7 @@ def add_invertible_flag(
"-v", "--verbose", action="count", dest="verbosity", help="More verbose messages"
)

compilation_status = "no" if __file__.endswith(".py") else "yes"
general_group.add_argument(
"-V",
"--version",
Expand Down
Loading