Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe4df12

Browse files
authored
Fix stubgen --no-analysis/--parse-only docs (#17632)
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. ```
1 parent 6eb3ee5 commit fe4df12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/stubgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1772,7 +1772,7 @@ def parse_options(args: list[str]) -> Options:
17721772
action="store_true",
17731773
help="don't perform semantic analysis of sources, just parse them "
17741774
"(only applies to Python modules, might affect quality of stubs. "
1775-
"Not compatible with --inspect)",
1775+
"Not compatible with --inspect-mode)",
17761776
)
17771777
parser.add_argument(
17781778
"--inspect-mode",

0 commit comments

Comments
 (0)