diff --git a/.gitignore b/.gitignore index 0278594..8321f55 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /mypy-0.2.0-9befcc7.tar.gz /mypy-lang-0.3.1.tar.gz /mypy-lang-0.4.1.tar.gz +/mypy-lang-0.4.2.tar.gz diff --git a/README.md b/README.md index 00d548b..d056fad 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ What is mypy? Mypy is an optional static type checker for Python. You can add type hints to your Python programs using the standard for type -annotations introduced in Python 3.5 (PEP 484), and use mypy to +annotations introduced in Python 3.5 ([PEP 484](https://www.python.org/dev/peps/pep-0484/)), and use mypy to type check them statically. Find bugs in your programs without even running them! @@ -17,7 +17,7 @@ The type annotation standard has also been backported to earlier Python 3.x versions. Mypy supports Python 3.2 and later. For Python 2.7, you can add annotations as comments (this is also -specified in PEP 484). +specified in [PEP 484](https://www.python.org/dev/peps/pep-0484/)). You can mix dynamic and static typing in your programs. You can always fall back to dynamic typing when static typing is not convenient, such @@ -25,7 +25,7 @@ as for legacy code. Here is a small example to whet your appetite: -``` +```python from typing import Iterator def fib(n: int) -> Iterator[int]: @@ -115,6 +115,16 @@ In Windows, the script is generally installed in C:\>\Python34\python \Python34\Scripts\mypy PROGRAM +### Working with `virtualenv` + +If you are using [`virtualenv`](https://virtualenv.pypa.io/en/stable/), +make sure you are running a python3 environment. Installing via `pip3` +in a v2 environment will not configure the environment to run installed +modules from the command line. + + $ python3 -m pip install virtualenv + $ python3 -m virtualenv env + Quick start for contributing to mypy ------------------------------------ diff --git a/python3-mypy.spec b/python3-mypy.spec index 33ba663..47c08b6 100644 --- a/python3-mypy.spec +++ b/python3-mypy.spec @@ -1,6 +1,6 @@ Name: python3-mypy # Last actual version was 0.2.0, which is 7805b2c, continues as 0.2.0_dev -Version: 0.4.1 +Version: 0.4.2 Release: 2 Summary: A static type checker for Python %{?python_provide:%python_provide python3-mypy} @@ -76,6 +76,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \ %{_prefix}/lib/mypy %changelog +* Mon Jun 13 2016 David Shea - 0.4.2-1 +- Update to mypy 0.4.2 + * Thu May 19 2016 David Shea - 0.4.1-2 - Fix build issues diff --git a/sources b/sources index 14400ba..51ddc91 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9e20367f11e3fc0194c03b350ba5e611 mypy-lang-0.4.1.tar.gz +c69737b88598c52e16b24ccadb4e9d0e mypy-lang-0.4.2.tar.gz