KEMBAR78
Allow passing arguments to stubgen.main by mwoehlke-kitware · Pull Request #13095 · python/mypy · GitHub
Skip to content

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