Represents stubgen options. This class is mutable to simplify testing.
| 191 | |
| 192 | |
| 193 | class Options: |
| 194 | """Represents stubgen options. |
| 195 | |
| 196 | This class is mutable to simplify testing. |
| 197 | """ |
| 198 | |
| 199 | def __init__( |
| 200 | self, |
| 201 | pyversion: tuple[int, int], |
| 202 | no_import: bool, |
| 203 | inspect: bool, |
| 204 | doc_dir: str, |
| 205 | search_path: list[str], |
| 206 | interpreter: str, |
| 207 | parse_only: bool, |
| 208 | ignore_errors: bool, |
| 209 | include_private: bool, |
| 210 | output_dir: str, |
| 211 | modules: list[str], |
| 212 | packages: list[str], |
| 213 | files: list[str], |
| 214 | verbose: bool, |
| 215 | quiet: bool, |
| 216 | export_less: bool, |
| 217 | include_docstrings: bool, |
| 218 | ) -> None: |
| 219 | # See parse_options for descriptions of the flags. |
| 220 | self.pyversion = pyversion |
| 221 | self.no_import = no_import |
| 222 | self.inspect = inspect |
| 223 | self.doc_dir = doc_dir |
| 224 | self.search_path = search_path |
| 225 | self.interpreter = interpreter |
| 226 | self.decointerpreter = interpreter |
| 227 | self.parse_only = parse_only |
| 228 | self.ignore_errors = ignore_errors |
| 229 | self.include_private = include_private |
| 230 | self.output_dir = output_dir |
| 231 | self.modules = modules |
| 232 | self.packages = packages |
| 233 | self.files = files |
| 234 | self.verbose = verbose |
| 235 | self.quiet = quiet |
| 236 | self.export_less = export_less |
| 237 | self.include_docstrings = include_docstrings |
| 238 | |
| 239 | |
| 240 | class StubSource: |
no outgoing calls
no test coverage detected
searching dependent graphs…