py-mypy: updated to 0.770

Mypy 0.770 was released. This release includes various fixes and improvements and improved type inference in some cases.
This commit is contained in:
adam 2020-03-17 20:18:43 +00:00
parent 541cf720ed
commit 2822a736fb
4 changed files with 93 additions and 28 deletions

View file

@ -1,3 +1,5 @@
bin/dmypy @PREFIX@/bin/dmypy-@PYVERSSUFFIX@
bin/mypy @PREFIX@/bin/mypy-@PYVERSSUFFIX@
bin/mypyc @PREFIX@/bin/mypyc-@PYVERSSUFFIX@
bin/stubgen @PREFIX@/bin/stubgen-@PYVERSSUFFIX@
bin/stubtest @PREFIX@/bin/stubtest-@PYVERSSUFFIX@

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.14 2020/01/03 11:53:09 adam Exp $
# $NetBSD: Makefile,v 1.15 2020/03/17 20:18:43 adam Exp $
DISTNAME= mypy-0.761
DISTNAME= mypy-0.770
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= lang python
MASTER_SITES= ${MASTER_SITE_PYPI:=m/mypy/}
@ -21,10 +21,10 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27
REPLACE_PYTHON= mypy/typeshed/tests/*.py
post-install:
.for bin in dmypy mypy mypyc stubgen stubtest
cd ${DESTDIR}${PREFIX}/bin && \
${MV} dmypy dmypy-${PYVERSSUFFIX} && \
${MV} mypy mypy-${PYVERSSUFFIX} && \
${MV} stubgen stubgen-${PYVERSSUFFIX} || ${TRUE}
${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
.endfor
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"

View file

@ -1,8 +1,9 @@
@comment $NetBSD: PLIST,v 1.10 2020/01/03 11:53:09 adam Exp $
@comment $NetBSD: PLIST,v 1.11 2020/03/17 20:18:43 adam Exp $
bin/dmypy-${PYVERSSUFFIX}
bin/mypy-${PYVERSSUFFIX}
bin/mypyc
bin/mypyc-${PYVERSSUFFIX}
bin/stubgen-${PYVERSSUFFIX}
bin/stubtest-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@ -312,6 +313,9 @@ ${PYSITELIB}/mypy/stubgen.pyo
${PYSITELIB}/mypy/stubgenc.py
${PYSITELIB}/mypy/stubgenc.pyc
${PYSITELIB}/mypy/stubgenc.pyo
${PYSITELIB}/mypy/stubtest.py
${PYSITELIB}/mypy/stubtest.pyc
${PYSITELIB}/mypy/stubtest.pyo
${PYSITELIB}/mypy/stubutil.py
${PYSITELIB}/mypy/stubutil.pyc
${PYSITELIB}/mypy/stubutil.pyo
@ -414,6 +418,9 @@ ${PYSITELIB}/mypy/test/testsolve.pyo
${PYSITELIB}/mypy/test/teststubgen.py
${PYSITELIB}/mypy/test/teststubgen.pyc
${PYSITELIB}/mypy/test/teststubgen.pyo
${PYSITELIB}/mypy/test/teststubtest.py
${PYSITELIB}/mypy/test/teststubtest.pyc
${PYSITELIB}/mypy/test/teststubtest.pyo
${PYSITELIB}/mypy/test/testsubtypes.py
${PYSITELIB}/mypy/test/testsubtypes.pyc
${PYSITELIB}/mypy/test/testsubtypes.pyo
@ -604,12 +611,15 @@ ${PYSITELIB}/mypy/typeshed/stdlib/2and3/_bisect.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/_codecs.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/_csv.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/_curses.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/_dummy_threading.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/_heapq.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/_random.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/_types.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/_warnings.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/_weakref.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/_weakrefset.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/aifc.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/antigravity.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/argparse.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/array.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/asynchat.pyi
@ -695,6 +705,7 @@ ${PYSITELIB}/mypy/typeshed/stdlib/2and3/distutils/unixccompiler.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/distutils/util.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/distutils/version.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/doctest.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/dummy_threading.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/ensurepip/__init__.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/errno.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/filecmp.pyi
@ -732,6 +743,7 @@ ${PYSITELIB}/mypy/typeshed/stdlib/2and3/math.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/mimetypes.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/mmap.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/modulefinder.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/msvcrt.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/netrc.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/nis.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/ntpath.pyi
@ -796,6 +808,7 @@ ${PYSITELIB}/mypy/typeshed/stdlib/2and3/warnings.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/wave.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/weakref.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/webbrowser.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/winsound.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/wsgiref/__init__.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/wsgiref/handlers.pyi
${PYSITELIB}/mypy/typeshed/stdlib/2and3/wsgiref/headers.pyi
@ -858,6 +871,7 @@ ${PYSITELIB}/mypy/typeshed/stdlib/3/asyncio/streams.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/asyncio/subprocess.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/asyncio/tasks.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/asyncio/transports.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/asyncio/unix_events.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/asyncio/windows_events.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/asyncio/windows_utils.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/atexit.pyi
@ -871,6 +885,10 @@ ${PYSITELIB}/mypy/typeshed/stdlib/3/concurrent/futures/process.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/concurrent/futures/thread.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/configparser.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/copyreg.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/dbm/__init__.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/dbm/dumb.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/dbm/gnu.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/dbm/ndbm.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/email/__init__.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/email/charset.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/email/contentmanager.pyi
@ -932,7 +950,6 @@ ${PYSITELIB}/mypy/typeshed/stdlib/3/json/__init__.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/json/decoder.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/json/encoder.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/lzma.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/msvcrt.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/multiprocessing/__init__.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/multiprocessing/connection.pyi
${PYSITELIB}/mypy/typeshed/stdlib/3/multiprocessing/context.pyi
@ -1016,6 +1033,9 @@ ${PYSITELIB}/mypy/typeshed/tests/mypy_test.pyo
${PYSITELIB}/mypy/typeshed/tests/pytype_test.py
${PYSITELIB}/mypy/typeshed/tests/pytype_test.pyc
${PYSITELIB}/mypy/typeshed/tests/pytype_test.pyo
${PYSITELIB}/mypy/typeshed/tests/stubtest_test.py
${PYSITELIB}/mypy/typeshed/tests/stubtest_test.pyc
${PYSITELIB}/mypy/typeshed/tests/stubtest_test.pyo
${PYSITELIB}/mypy/typeshed/third_party/2/OpenSSL/__init__.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/OpenSSL/crypto.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/concurrent/__init__.pyi
@ -1026,7 +1046,6 @@ ${PYSITELIB}/mypy/typeshed/third_party/2/concurrent/futures/thread.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/enum.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/fb303/FacebookService.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/fb303/__init__.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/gflags.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/ipaddress.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/kazoo/__init__.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/kazoo/client.pyi
@ -1074,20 +1093,6 @@ ${PYSITELIB}/mypy/typeshed/third_party/2/six/moves/urllib_request.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/six/moves/urllib_response.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/six/moves/urllib_robotparser.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/six/moves/xmlrpc_client.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/__init__.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/concurrent.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/gen.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/httpclient.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/httpserver.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/httputil.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/ioloop.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/locks.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/netutil.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/process.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/tcpserver.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/testing.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/util.pyi
${PYSITELIB}/mypy/typeshed/third_party/2/tornado/web.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/Crypto/Cipher/AES.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/Crypto/Cipher/ARC2.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/Crypto/Cipher/ARC4.pyi
@ -1250,6 +1255,7 @@ ${PYSITELIB}/mypy/typeshed/third_party/2and3/cryptography/hazmat/primitives/twof
${PYSITELIB}/mypy/typeshed/third_party/2and3/cryptography/x509.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/dateutil/__init__.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/dateutil/_common.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/dateutil/easter.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/dateutil/parser.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/dateutil/relativedelta.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/dateutil/rrule.pyi
@ -1284,6 +1290,7 @@ ${PYSITELIB}/mypy/typeshed/third_party/2and3/geoip2/errors.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/geoip2/mixins.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/geoip2/models.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/geoip2/records.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/gflags.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/google/__init__.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/google/protobuf/__init__.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/google/protobuf/any_pb2.pyi
@ -1451,6 +1458,20 @@ ${PYSITELIB}/mypy/typeshed/third_party/2and3/singledispatch.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tabulate.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/termcolor.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/toml.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/__init__.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/concurrent.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/gen.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/httpclient.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/httpserver.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/httputil.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/ioloop.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/locks.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/netutil.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/process.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/tcpserver.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/testing.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/util.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/tornado/web.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/typing_extensions.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/ujson.pyi
${PYSITELIB}/mypy/typeshed/third_party/2and3/werkzeug/__init__.pyi
@ -1640,12 +1661,48 @@ ${PYSITELIB}/mypyc/errors.pyo
${PYSITELIB}/mypyc/exceptions.py
${PYSITELIB}/mypyc/exceptions.pyc
${PYSITELIB}/mypyc/exceptions.pyo
${PYSITELIB}/mypyc/genclass.py
${PYSITELIB}/mypyc/genclass.pyc
${PYSITELIB}/mypyc/genclass.pyo
${PYSITELIB}/mypyc/genexpr.py
${PYSITELIB}/mypyc/genexpr.pyc
${PYSITELIB}/mypyc/genexpr.pyo
${PYSITELIB}/mypyc/genfunc.py
${PYSITELIB}/mypyc/genfunc.pyc
${PYSITELIB}/mypyc/genfunc.pyo
${PYSITELIB}/mypyc/genops.py
${PYSITELIB}/mypyc/genops.pyc
${PYSITELIB}/mypyc/genops.pyo
${PYSITELIB}/mypyc/genops_for.py
${PYSITELIB}/mypyc/genops_for.pyc
${PYSITELIB}/mypyc/genops_for.pyo
${PYSITELIB}/mypyc/genopscontext.py
${PYSITELIB}/mypyc/genopscontext.pyc
${PYSITELIB}/mypyc/genopscontext.pyo
${PYSITELIB}/mypyc/genopsmain.py
${PYSITELIB}/mypyc/genopsmain.pyc
${PYSITELIB}/mypyc/genopsmain.pyo
${PYSITELIB}/mypyc/genopsmapper.py
${PYSITELIB}/mypyc/genopsmapper.pyc
${PYSITELIB}/mypyc/genopsmapper.pyo
${PYSITELIB}/mypyc/genopsprepare.py
${PYSITELIB}/mypyc/genopsprepare.pyc
${PYSITELIB}/mypyc/genopsprepare.pyo
${PYSITELIB}/mypyc/genopsutil.py
${PYSITELIB}/mypyc/genopsutil.pyc
${PYSITELIB}/mypyc/genopsutil.pyo
${PYSITELIB}/mypyc/genopsvisitor.py
${PYSITELIB}/mypyc/genopsvisitor.pyc
${PYSITELIB}/mypyc/genopsvisitor.pyo
${PYSITELIB}/mypyc/genopsvtable.py
${PYSITELIB}/mypyc/genopsvtable.pyc
${PYSITELIB}/mypyc/genopsvtable.pyo
${PYSITELIB}/mypyc/genstatement.py
${PYSITELIB}/mypyc/genstatement.pyc
${PYSITELIB}/mypyc/genstatement.pyo
${PYSITELIB}/mypyc/ir_builder.py
${PYSITELIB}/mypyc/ir_builder.pyc
${PYSITELIB}/mypyc/ir_builder.pyo
${PYSITELIB}/mypyc/lib-rt/CPy.c
${PYSITELIB}/mypyc/lib-rt/CPy.h
${PYSITELIB}/mypyc/lib-rt/getargs.c
@ -1655,6 +1712,9 @@ ${PYSITELIB}/mypyc/lib-rt/pythonsupport.h
${PYSITELIB}/mypyc/namegen.py
${PYSITELIB}/mypyc/namegen.pyc
${PYSITELIB}/mypyc/namegen.pyo
${PYSITELIB}/mypyc/nonlocalcontrol.py
${PYSITELIB}/mypyc/nonlocalcontrol.pyc
${PYSITELIB}/mypyc/nonlocalcontrol.pyo
${PYSITELIB}/mypyc/ops.py
${PYSITELIB}/mypyc/ops.pyc
${PYSITELIB}/mypyc/ops.pyo
@ -1700,6 +1760,9 @@ ${PYSITELIB}/mypyc/rt_subtype.pyo
${PYSITELIB}/mypyc/sametype.py
${PYSITELIB}/mypyc/sametype.pyc
${PYSITELIB}/mypyc/sametype.pyo
${PYSITELIB}/mypyc/specialize.py
${PYSITELIB}/mypyc/specialize.pyc
${PYSITELIB}/mypyc/specialize.pyo
${PYSITELIB}/mypyc/subtype.py
${PYSITELIB}/mypyc/subtype.pyc
${PYSITELIB}/mypyc/subtype.pyo

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.12 2020/01/03 11:53:09 adam Exp $
$NetBSD: distinfo,v 1.13 2020/03/17 20:18:43 adam Exp $
SHA1 (mypy-0.761.tar.gz) = ad92aacf38cd3174579e43889685dccd85b169cc
RMD160 (mypy-0.761.tar.gz) = cf02cf197bebf59880b88a7ee98736a802d631bc
SHA512 (mypy-0.761.tar.gz) = 0928274abb2e2d3935a0773992f15adb32da624f0412c39853cd144712c48ab77a525d1d9fc7b27c2e3e87940cf622db62d7ebe62fede1a05f5e00faaf476f51
Size (mypy-0.761.tar.gz) = 2101124 bytes
SHA1 (mypy-0.770.tar.gz) = da0a2845ea2660122268930bea7478dca4815289
RMD160 (mypy-0.770.tar.gz) = 249957aced5a23393282f9bf57431155a515002b
SHA512 (mypy-0.770.tar.gz) = 0137a2a68f89a05b27afd3e579f54bf7607494ffe6870aec7711c16f4d8737fffea5b2eb617ca6077906dcfdea557cc1407442f5da811974098b3fb934e59bd7
Size (mypy-0.770.tar.gz) = 2192551 bytes