Skip to content

Allow passing arguments to stubgen.main #13095

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

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

mwoehlke-kitware
Copy link
Contributor

Modify signature of stubgen.main to accept a user-provided list of arguments. This allows users to supply their own argument list without monkeying about with sys.argv, which improves the usefulness of embedding stubgen into other projects.

Modify signature of stubgen.main to accept a user-provided list of
arguments. This allows users to supply their own argument list without
monkeying about with sys.argv, which improves the usefulness of
embedding stubgen into other projects.
Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, thanks!

@hauntsaninja hauntsaninja merged commit 256f1f3 into python:master Jul 8, 2022
@mwoehlke-kitware mwoehlke-kitware deleted the fix-stubgen-args branch July 8, 2022 18:24
@mwoehlke-kitware
Copy link
Contributor Author

Thank you!

Gobot1234 pushed a commit to Gobot1234/mypy that referenced this pull request Aug 12, 2022
Modify signature of stubgen.main to accept a user-provided list of
arguments. This allows users to supply their own argument list without
monkeying about with sys.argv, which improves the usefulness of
embedding stubgen into other projects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants