pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/py-mypy



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Mar 15 05:53:26 UTC 2022

Modified Files:
        pkgsrc/lang/py-mypy: Makefile PLIST distinfo

Log Message:
py-mypy: updated to 0.941

0.940:

Miscellaneous New Features

Add support for conditionally defined overloads
Give "as" variables in with statements separate scopes when it is safe to do so
Add an optional error code ignore-without-code to require ignore comments to have error codes
Add support for typing.Never and typing_extensions.Never as alternative spellings of NoReturn
Add support for typing.reveal_type
Support universal2 macOS wheels
Add match_args support to attr.s()

Enum Improvements

Check Enum definition for invalid base classes
Understand the self-destructing nature of Enum._ignore_
Add StrEnum support for Python 3.11
Make enum values final
Improve final detection for Enum
Fix Enum final properties and writable special members
Enum now accepts String literals and final values as 2nd argument
Fix false positive about member name reuse in enum
Fix enum inheritance regression

Mypyc Fixes and Improvements

Use Py_TYPE and Py_IsNone
Implement additional internal consistency checks
Raise AttributeError also for non-refcounted types
Fix invalid unlikely() in certain rare branches
Skip no-op super calls to object.__init__()
Use latest pythoncapi_compat
Add helpful message to assert

Documentation Updates

Add documentations about Enum types
Update Enum documentation
Improve documentation of allow_redefinition
Fix intelligent indexing example
Explain generic Protocol[T1, T2, ...] shorthand
Clarify that stub-only packages need to be installed
Small documentation improvements for conditional overloads

Improved Error Messages

Improve the "Argument must be a mapping" error message
Coalesce Literals when printing unions
Suggest typing.Callable when using callable as type
Suggest typing.Any when using any as type
Add note about wrong error code in type: ignore
Add no-overload-impl error code
Display ellipsis when formatting variadic tuple[T, ...]
Deduplicate error codes for ignore-without-code
Tweak ignore-without-code error message
Mention common resolutions for build errors

Stubtest Improvements

Ignore more dunder positional-only errors
Fix wrong assumption about relative path
Catch more getattr errors
Error if module level dunder is missing, housekeeping
Ignore __main__ module
Error if a dunder method is missing from a stub
Error if a function is async at runtime but not in the stub
Do not error if a stub is async, but runtime is not
Error if a class should be decorated with @final
Use VERSIONS for submodules
Treat dicts as a subtype of typeddict
Ignore more exceptions in stubtest

Other Notable Fixes and Improvements

Fix non-default keyword-only argument positioning in stubgen
Remove orjson stubs from default list
Use __truediv__ for Python 2 with __future__ import
Fix Python 2 compatibility issue
Use type variable bound to infer constraints
Handle raise Exception(), None on Python 2.7
Fix inference of protocol against overloaded function
Fix an issubclass failure for protocols with overloaded methods
Fix crashes in class scoped imports
Fix use of TypeAlias from aliased imports
Delete open plugin
Read pyproject.toml with correct encoding on Windows
Fix issue with implicit type aliases in import cycles
Forbid extra ParamSpec arguments
Fix crash involving explicit any flag and Required
Fix join of Any against a union type
Simplify unions when erasing last known values
Fix crash with yield in comprehension
Fix handling of NoReturn in union return types
Fix __init__ in dataclasses inheriting from Any
Narrow NamedTuple to bool correctly when __bool__ is defined
Improve type of __attrs_attrs__ in attrs classes
Install dependencies needed for reports via pip install mypy[reports]
Consider import * to be an explicit re-export
Fix --no-implicit-reexport inconsistency
Fix crash if "_" is in builtins
Fixes crash on subclassing Annotated without args


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/lang/py-mypy/Makefile
cvs rdiff -u -r1.19 -r1.20 pkgsrc/lang/py-mypy/PLIST
cvs rdiff -u -r1.25 -r1.26 pkgsrc/lang/py-mypy/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/py-mypy/Makefile
diff -u pkgsrc/lang/py-mypy/Makefile:1.27 pkgsrc/lang/py-mypy/Makefile:1.28
--- pkgsrc/lang/py-mypy/Makefile:1.27   Tue Jan 11 07:07:42 2022
+++ pkgsrc/lang/py-mypy/Makefile        Tue Mar 15 05:53:26 2022
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2022/01/11 07:07:42 adam Exp $
+# $NetBSD: Makefile,v 1.28 2022/03/15 05:53:26 adam Exp $
 
-DISTNAME=      mypy-0.931
+DISTNAME=      mypy-0.941
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    lang python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=m/mypy/}

Index: pkgsrc/lang/py-mypy/PLIST
diff -u pkgsrc/lang/py-mypy/PLIST:1.19 pkgsrc/lang/py-mypy/PLIST:1.20
--- pkgsrc/lang/py-mypy/PLIST:1.19      Thu Dec 30 21:19:26 2021
+++ pkgsrc/lang/py-mypy/PLIST   Tue Mar 15 05:53:26 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.19 2021/12/30 21:19:26 adam Exp $
+@comment $NetBSD: PLIST,v 1.20 2022/03/15 05:53:26 adam Exp $
 bin/dmypy-${PYVERSSUFFIX}
 bin/mypy-${PYVERSSUFFIX}
 bin/mypyc-${PYVERSSUFFIX}
@@ -46,6 +46,9 @@ ${PYSITELIB}/mypy/checkexpr.pyo
 ${PYSITELIB}/mypy/checkmember.py
 ${PYSITELIB}/mypy/checkmember.pyc
 ${PYSITELIB}/mypy/checkmember.pyo
+${PYSITELIB}/mypy/checkpattern.py
+${PYSITELIB}/mypy/checkpattern.pyc
+${PYSITELIB}/mypy/checkpattern.pyo
 ${PYSITELIB}/mypy/checkstrformat.py
 ${PYSITELIB}/mypy/checkstrformat.pyc
 ${PYSITELIB}/mypy/checkstrformat.pyo
@@ -181,6 +184,9 @@ ${PYSITELIB}/mypy/options.pyo
 ${PYSITELIB}/mypy/parse.py
 ${PYSITELIB}/mypy/parse.pyc
 ${PYSITELIB}/mypy/parse.pyo
+${PYSITELIB}/mypy/patterns.py
+${PYSITELIB}/mypy/patterns.pyc
+${PYSITELIB}/mypy/patterns.pyo
 ${PYSITELIB}/mypy/plugin.py
 ${PYSITELIB}/mypy/plugin.pyc
 ${PYSITELIB}/mypy/plugin.pyo
@@ -419,9 +425,6 @@ ${PYSITELIB}/mypy/test/testpythoneval.py
 ${PYSITELIB}/mypy/test/testreports.py
 ${PYSITELIB}/mypy/test/testreports.pyc
 ${PYSITELIB}/mypy/test/testreports.pyo
-${PYSITELIB}/mypy/test/testsamples.py
-${PYSITELIB}/mypy/test/testsamples.pyc
-${PYSITELIB}/mypy/test/testsamples.pyo
 ${PYSITELIB}/mypy/test/testsemanal.py
 ${PYSITELIB}/mypy/test/testsemanal.pyc
 ${PYSITELIB}/mypy/test/testsemanal.pyo
@@ -924,6 +927,7 @@ ${PYSITELIB}/mypy/typeshed/stdlib/_threa
 ${PYSITELIB}/mypy/typeshed/stdlib/_tkinter.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/_tracemalloc.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/_typeshed/__init__.pyi
+${PYSITELIB}/mypy/typeshed/stdlib/_typeshed/dbapi.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/_typeshed/wsgi.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/_typeshed/xml.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/_warnings.pyi
@@ -1072,6 +1076,7 @@ ${PYSITELIB}/mypy/typeshed/stdlib/doctes
 ${PYSITELIB}/mypy/typeshed/stdlib/dummy_threading.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/email/__init__.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/email/_header_value_parser.pyi
+${PYSITELIB}/mypy/typeshed/stdlib/email/base64mime.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/email/charset.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/email/contentmanager.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/email/encoders.pyi
@@ -1093,9 +1098,11 @@ ${PYSITELIB}/mypy/typeshed/stdlib/email/
 ${PYSITELIB}/mypy/typeshed/stdlib/email/mime/text.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/email/parser.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/email/policy.pyi
+${PYSITELIB}/mypy/typeshed/stdlib/email/quoprimime.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/email/utils.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/encodings/__init__.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/encodings/utf_8.pyi
+${PYSITELIB}/mypy/typeshed/stdlib/encodings/utf_8_sig.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/ensurepip/__init__.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/enum.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/errno.pyi
@@ -1134,7 +1141,8 @@ ${PYSITELIB}/mypy/typeshed/stdlib/imp.py
 ${PYSITELIB}/mypy/typeshed/stdlib/importlib/__init__.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/importlib/abc.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/importlib/machinery.pyi
-${PYSITELIB}/mypy/typeshed/stdlib/importlib/metadata.pyi
+${PYSITELIB}/mypy/typeshed/stdlib/importlib/metadata/__init__.pyi
+${PYSITELIB}/mypy/typeshed/stdlib/importlib/metadata/_meta.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/importlib/resources.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/importlib/util.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/inspect.pyi
@@ -1305,6 +1313,7 @@ ${PYSITELIB}/mypy/typeshed/stdlib/typing
 ${PYSITELIB}/mypy/typeshed/stdlib/typing_extensions.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/unicodedata.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/unittest/__init__.pyi
+${PYSITELIB}/mypy/typeshed/stdlib/unittest/_log.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/unittest/async_case.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/unittest/case.pyi
 ${PYSITELIB}/mypy/typeshed/stdlib/unittest/loader.pyi

Index: pkgsrc/lang/py-mypy/distinfo
diff -u pkgsrc/lang/py-mypy/distinfo:1.25 pkgsrc/lang/py-mypy/distinfo:1.26
--- pkgsrc/lang/py-mypy/distinfo:1.25   Tue Jan 11 07:07:42 2022
+++ pkgsrc/lang/py-mypy/distinfo        Tue Mar 15 05:53:26 2022
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.25 2022/01/11 07:07:42 adam Exp $
+$NetBSD: distinfo,v 1.26 2022/03/15 05:53:26 adam Exp $
 
-BLAKE2s (mypy-0.931.tar.gz) = 522c7a3a137853047e20f5e5b8ac8461863574dd04ca1544a5d1fd92d6f652b4
-SHA512 (mypy-0.931.tar.gz) = 5963cee575e2eb8dcf0968d3bf5f6dc5e257f440b6a00f4a13f34491511cf02dc00bebaf6268e70df9b745d3aa1c4a58446a33029ea617130d0e851f25c31599
-Size (mypy-0.931.tar.gz) = 2729650 bytes
+BLAKE2s (mypy-0.941.tar.gz) = ffc527ad4983f46cb093172e0682a0e557b79d63565cada2a9bd6bb1a918ddf3
+SHA512 (mypy-0.941.tar.gz) = b29f3debbc0b79afad5417e8db5784c3a725a4dfbed69c22af91558ab798f6bc4f8ad59fbdeb22d16e6e4b3abc21a9bbb71e2075acc5494ace0bc13513880c73
+Size (mypy-0.941.tar.gz) = 2649786 bytes



Home | Main Index | Thread Index | Old Index