Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-104050: Argument Clinic: annotate main() #107192

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Changes from all commits
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
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)