FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-104050: Argument Clinic: annotate `main()` by AlexWaygood · Pull Request #107192 · python/cpython · GitHub

/ cpython Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
9 changes: 5 additions & 4 deletions Tools/clinic/clinic.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -5591,7 +5591,7 @@ def state_terminal(self, line: str | None) -> None:
clinic = None


def main(argv):
def main(argv: list[str]) -> None:
import sys
import argparse
cmdline = argparse.ArgumentParser(
Expand Down Expand Up @@ -5619,8 +5619,8 @@ def main(argv):
print()
cmdline.print_usage()
sys.exit(-1)
converters = []
return_converters = []
converters: list[tuple[str, str]] = []
return_converters: list[tuple[str, str]] = []
ignored = set("""
add_c_converter
add_c_return_converter
Expand Down Expand Up @@ -5716,4 +5716,5 @@ def main(argv):


if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
main(sys.argv[1:])
sys.exit(0)

Back | FazBrowse Home | New Git URL