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

Fix stubgen --no-analysis/--parse-only docs #17632

Merged
merged 1 commit into from
Aug 4, 2024
Merged

Fix stubgen --no-analysis/--parse-only docs #17632

merged 1 commit into from
Aug 4, 2024

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Aug 4, 2024

The option is called --inspect-mode, not --inspect

It used to be:

» stubgen --help
usage: stubgen [-h] [more options, see -h]
                     [-m MODULE] [-p PACKAGE] [files ...]

Generate draft stubs for modules. Stubs are generated in directory ./out, to avoid
overriding files with manual changes. This directory is assumed to exist.

positional arguments:
  files                 generate stubs for given files or directories

options:
  --no-analysis, --parse-only
                        don't perform semantic analysis of sources, just parse them (only
                        applies to Python modules, might affect quality of stubs. Not
                        compatible with --inspect)
  --inspect-mode        import and inspect modules instead of parsing source code.This is
                        the default behavior for c modules and pyc-only packages, but it
                        is also useful for pure python modules with dynamically generated
                        members.

@sobolevn sobolevn merged commit fe4df12 into master Aug 4, 2024
14 checks passed
@sobolevn sobolevn deleted the stubgen-docs branch August 4, 2024 09:18
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.

None yet

1 participant