1MYPY(1)                          User Commands                         MYPY(1)
2
3
4

NAME

6       mypy - manual page for mypy stubgen 0.620-dev
7

DESCRIPTION

9       usage: stubgen [--py2] [--no-import] [--doc-dir PATH]
10
11              [--search-path PATH] [-p PATH] [-o PATH] MODULE ...
12
13       Generate draft stubs for modules.
14
15       Stubs  are generated in directory ./out, to avoid overriding files with
16       manual changes.  This directory is assumed to exist.
17

OPTIONS

19       --py2  run in Python 2 mode (default: Python 3 mode)
20
21       --recursive
22              traverse listed modules to generate  inner  package  modules  as
23              well
24
25       --ignore-errors ignore errors when trying to generate stubs for modules
26
27       --no-import
28              don't  import  the modules, just parse and analyze them (doesn't
29              work with C extension modules and doesn't respect __all__)
30
31       --include-private
32
33              generate stubs for objects and members considered private  (sin‐
34              gle leading underscore and no trailing underscores)
35
36       --doc-dir PATH
37              use  .rst documentation in PATH (this may result in better stubs
38              in     some     cases;     consider     setting     this      to
39              DIR/Python-X.Y.Z/Doc/library)
40
41       --search-path PATH
42
43              specify  module  search directories, separated by ':' (currently
44              only used if --no-import is given)
45
46       -p PATH
47              use Python interpreter at PATH (only works for  Python  2  right
48              now)
49
50       -o PATH
51              Change the output folder [default: out]
52
53       -h, --help
54              print this help message and exit
55
56
57
58mypy stubgen 0.620-dev           December 2018                         MYPY(1)
Impressum