Skip to content

Commit

Permalink
pythongh-104050: Argument Clinic: annotate main() (python#107192)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored and jtcave committed Jul 27, 2023
1 parent 654956f commit 2d11f75
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Tools/clinic/clinic.py
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)

0 comments on commit 2d11f75

Please sign in to comment.