Commit bb1c7a99 authored by Michael R. Crusoe's avatar Michael R. Crusoe 🏳️‍🌈
Browse files

New upstream version 0.730

parent b88ec0c9
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
Mypy is licensed under the terms of the MIT license, reproduced below.
Mypy (and mypyc) are licensed under the terms of the MIT license, reproduced below.

= = = = =

The MIT License

Copyright (c) 2015-2016 Jukka Lehtosalo and contributors
Copyright (c) 2015-2019 Jukka Lehtosalo and contributors

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
@@ -26,8 +26,10 @@ DEALINGS IN THE SOFTWARE.

= = = = =

Portions of mypy are licensed under different licenses.  The files
under stdlib-samples are licensed under the PSF 2 License, reproduced below.
Portions of mypy and mypyc are licensed under different licenses.  The
files under stdlib-samples as well as the files
mypyc/lib-rt/pythonsupport.h and mypyc/lib-rt/getargs.c are licensed
under the PSF 2 License, reproduced below.

= = = = =

@@ -223,5 +225,3 @@ FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

= = = = =
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
Metadata-Version: 2.1
Name: mypy
Version: 0.720
Version: 0.730
Summary: Optional static typing for Python
Home-page: http://www.mypy-lang.org/
Author: Jukka Lehtosalo
@@ -26,4 +26,5 @@ Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development
Requires-Python: >=3.5
Provides-Extra: dmypy
+4 −3
Original line number Diff line number Diff line
@@ -265,9 +265,10 @@ Compiled version of mypy
------------------------

We have built an compiled version of mypy using the [mypyc
compiler](https://github.com/mypyc/mypyc) for mypy-annotated Python
code. It is approximately 4 times faster than interpreted mypy and is
available (and the default) for 64-bit Windows, macOS, and Linux.
compiler](https://github.com/python/mypy/tree/master/mypyc) for
mypy-annotated Python code. It is approximately 4 times faster than
interpreted mypy and is available (and the default) for 64-bit
Windows, macOS, and Linux.

To install an interpreted mypy instead, use:

+27 −18
Original line number Diff line number Diff line
@@ -429,8 +429,8 @@ of the above sections.
``--no-implicit-reexport``
    By default, imported values to a module are treated as exported and mypy allows
    other modules to import them. This flag changes the behavior to not re-export unless
    the item is imported using from-as. Note this is always treated as enabled for
    stub files. For example:
    the item is imported using from-as or is included in ``__all__``. Note this is
    always treated as enabled for stub files. For example:

    .. code-block:: python

@@ -438,6 +438,9 @@ of the above sections.
       from foo import bar
       # This will re-export it as bar and allow other modules to import it
       from foo import bar as bar
       # This will also re-export bar
       from foo import bar
       __all__ = ['bar']


``--strict-equality``
@@ -494,12 +497,27 @@ in error messages.
        main.py:3: error: Unsupported operand types for + ("int" and "str")

``--show-column-numbers``
    This flag will add column offsets to error messages,
    for example, the following indicates an error in line 12, column 9
    This flag will add column offsets to error messages.
    For example, the following indicates an error in line 12, column 9
    (note that column offsets are 0-based)::

        main.py:12:9: error: Unsupported operand types for / ("int" and "str")

``--show-error-codes``
    This flag will add an error code ``[<code>]`` to error messages. The error
    code is shown after each error message::

        prog.py:1: error: "str" has no attribute "trim"  [attr-defined]

    See :ref:`error-codes` for more information.

``--no-color-output``
    This flag will disable color output in error messages, enabled by default.

``--no-error-summary``
    This flag will disable error summary. By default mypy shows a summary line
    including total number of errors, number of files with errors, and number
    of files checked.

.. _incremental:

@@ -530,6 +548,9 @@ beyond what incremental mode can offer, try running mypy in
    change this folder. This flag can also be useful for controlling
    cache use when using :ref:`remote caching <remote-cache>`.

    This setting will override the ``MYPY_CACHE_DIR`` environment
    variable if it is set.

    Mypy will also always write to the cache even when incremental
    mode is disabled so it can "warm up" the cache. To disable
    writing to the cache, use ``--cache-dir=/dev/null`` (UNIX)
@@ -659,18 +680,6 @@ Miscellaneous
    have many scripts that import a large package, the behavior enabled
    by this flag is often more convenient.)

``--no-new-semantic-analyzer``
    This flag disables the improved implementation of
    the *semantic analyzer* (the part of mypy that binds Python
    names to definitions). The old and the new semantic analyzers
    mostly behave identically. The new semantic analyzer is better at
    handling import cycles and forward references to definitions. It
    also fixes inconsistencies between the daemon and non-daemon modes,
    and it detects additional error conditions.

    Likely, the old semantic analyzer will be removed in the next
    release.

.. _PEP 420: https://www.python.org/dev/peps/pep-0420/

.. _PEP 561: https://www.python.org/dev/peps/pep-0561/
+8 −0
Original line number Diff line number Diff line
@@ -124,6 +124,14 @@ error:
The second line is now fine, since the ignore comment causes the name
``frobnicate`` to get an implicit ``Any`` type.

.. note::

    You can use the form ``# type: ignore[<code>]`` to only ignore
    specific errors on the line. This way you are less likely to
    silence unexpected errors that are not safe to ignore, and this
    will also document what the purpose of the comment is.  See
    :ref:`error-codes` for more information.

.. note::

    The ``# type: ignore`` comment will only assign the implicit ``Any``
Loading