Here’s an example of using -non-interactive: When not using -non-interactive, you’d have to run mypy again to get up-to-date results with the installed stubs. The option causes mypy to both install stub packages and perform type checking within a single invocation. This can be useful in Continuous Integration jobs. This release adds the new option -non-interactive that can be used with -install-types to install suggested stub packages without asking for confirmation. We received feedback that this wasn’t a good fit for all use cases, since it asks for interactive confirmation from the user, and it requires another mypy invocation to actually perform type checking. Mypy 0.900 added -install-types to install missing stub packages. Installing Stub Packages Non-Interactively You can read the full documentation for this release on Read the Docs. This is a small feature release that includes a new command-line option -non-interactive for installing stub (type) packages without asking for a confirmation, fixes to regressions, and a few other improvements. Mypy is a static type checker for Python. We’ve just uploaded mypy 0.910 to the Python Package Index ( PyPI).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |