docstrings2pep727
¤
docstrings2pep727 package.
Move documentation from docstrings to PEP 727 type annotations.
Functions:
-
get_parser–Return the CLI argument parser.
-
main–Run the main program.
get_parser
¤
get_parser() -> ArgumentParser
Return the CLI argument parser.
Returns:
-
ArgumentParser–An argparse parser.
Source code in src/docstrings2pep727/_internal/cli.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
main
¤
Run the main program.
This function is executed when you type docstrings2pep727 or python -m docstrings2pep727.
Parameters:
Returns:
-
int–An exit code.
Source code in src/docstrings2pep727/_internal/cli.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | |