Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mypy for openSUSE:Factory checked in at 2023-01-25 17:42:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mypy (Old) and /work/SRC/openSUSE:Factory/.mypy.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mypy" Wed Jan 25 17:42:53 2023 rev:32 rq:1060693 version:0.991 Changes: -------- --- /work/SRC/openSUSE:Factory/mypy/mypy.changes 2022-09-28 17:51:46.387234668 +0200 +++ /work/SRC/openSUSE:Factory/.mypy.new.32243/mypy.changes 2023-01-25 17:51:14.090644401 +0100 @@ -1,0 +2,17 @@ +Tue Jan 24 11:50:12 UTC 2023 - Daniel Garcia <[email protected]> + +- Update to 0.991 + - Basic Python 3.11 Support + - Breaking Change: No Implicit Optional Types for Arguments + - Breaking Change: Namespace Packages Enabled by Default + - Recursive Types Enabled By Default + - Error Codes Shown by Default + - Safe Handling of Empty Function Bodies + - Enabling Experimental Features Individually + - Configuring Packages/Modules in the Config File + - Warn about Variable Annotations in Unchecked Functions + - Error Code for Using an Abstract Class as type[T] + - Performance Improvements + - Changes to Error Reporting and Messages + +------------------------------------------------------------------- Old: ---- mypy-0.981.tar.gz types-typed-ast-1.5.1.tar.gz New: ---- mypy-0.991.tar.gz types-psutil-5.9.5.6.tar.gz types-setuptools-65.6.0.3.tar.gz types-typed-ast-1.5.8.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mypy.spec ++++++ --- /var/tmp/diff_new_pack.ASTT1L/_old 2023-01-25 17:51:14.626647264 +0100 +++ /var/tmp/diff_new_pack.ASTT1L/_new 2023-01-25 17:51:14.630647285 +0100 @@ -1,7 +1,7 @@ # # spec file for package mypy # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,11 +17,12 @@ %bcond_without test -%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 -%define typed_ast_version 1.5.1 +%define typed_ast_version 1.5.8.3 +%define types_psutil_version 5.9.5.6 +%define types_setuptools_version 65.6.0.3 Name: mypy -Version: 0.981 +Version: 0.991 Release: 0 Summary: Optional static typing for Python License: MIT @@ -30,6 +31,10 @@ Source0: https://files.pythonhosted.org/packages/source/m/mypy/mypy-%{version}.tar.gz # License Source1: Apache-2.0. Only for the test suite, not packaged here. Source1: https://files.pythonhosted.org/packages/source/t/types-typed-ast/types-typed-ast-%{typed_ast_version}.tar.gz +# License Source2: Apache-2.0. Only for the test suite, not packaged here. +Source2: https://files.pythonhosted.org/packages/source/t/types-psutil/types-psutil-%{types_psutil_version}.tar.gz +# License Source3: Apache-2.0. Only for the test suite, not packaged here. +Source3: https://files.pythonhosted.org/packages/source/t/types-setuptools/types-setuptools-%{types_setuptools_version}.tar.gz Source99: mypy-rpmlintrc BuildRequires: %{python_module mypy_extensions >= 0.4.3} BuildRequires: %{python_module setuptools} @@ -86,13 +91,16 @@ and union types. %prep -%autosetup -n mypy-%{version} -p1 -a1 +%setup -n mypy-%{version} -a1 -a2 -a3 +%autopatch -p1 sed -i '/env python3/d' ./mypy/stubgenc.py sed -i '/env python3/d' ./mypy/stubgen.py mkdir mystubs -mv types-typed-ast-%{typed_ast_version}/typed_ast-stubs mystubs/typed_ast +mv types-typed-ast-%{typed_ast_version}/typed_ast-stubs* mystubs/ +mv types-setuptools-%{types_setuptools_version}/setuptools-stubs* mystubs/ +mv types-psutil-%{types_psutil_version}/psutil-stubs* mystubs/ %build %python_build @@ -114,13 +122,8 @@ %if %{with test} %check -sed -i mypy_self_check.ini \ - -e '/python_version.*$/d' \ - -e '/warn_unused_ignores/d' - %{python_expand # self-check with manually provided stubs for typed_ast -export PYTHONPATH=%{buildroot}%{$python_sitelib} -export MYPYPATH=./mystubs +export PYTHONPATH=%{buildroot}%{$python_sitelib}:./mystubs $python -m mypy --config-file mypy_self_check.ini -p mypy } unset PYTHONPATH ++++++ mypy-0.981.tar.gz -> mypy-0.991.tar.gz ++++++ ++++ 34834 lines of diff (skipped) ++++++ types-typed-ast-1.5.1.tar.gz -> types-typed-ast-1.5.8.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.1/CHANGELOG.md new/types-typed-ast-1.5.8.3/CHANGELOG.md --- old/types-typed-ast-1.5.1/CHANGELOG.md 2021-12-28 13:31:32.000000000 +0100 +++ new/types-typed-ast-1.5.8.3/CHANGELOG.md 2022-11-14 13:47:25.000000000 +0100 @@ -1,3 +1,60 @@ +## 1.5.8.3 (2022-11-14) + +Improve `ast` types; revert several "redundant numeric union" changes from #7906 (#9130) + +* Adapt number types in ast + +Since mypy 0.990 type promotions was limited. +This means that complex is not longer promoted to int/float, therefore +we should adapt the types to list all possible types + +Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> +Co-authored-by: AlexWaygood <[email protected]> + +## 1.5.8.2 (2022-11-07) + +Mark typed_ast as completed (#9121) + +## 1.5.8.1 (2022-10-28) + +typed-ast: fix get_docstring, allow buffer (#9019) + +## 1.5.8 (2022-08-29) + +`typed_ast.ast3`: `arguments.kw_defaults` should be `list[expr | None]` (#8645) + +```python +>>> from typed_ast import ast3 +>>> print(ast3.dump(ast3.parse('def foo(*, arg: int) -> None: ...'))) +Module(body=[FunctionDef(name='foo', args=arguments(args=[], vararg=None, kwonlyargs=[arg(arg='arg', annotation=Name(id='int', ctx=Load()), type_comment=None)], kw_defaults=[None], kwarg=None, defaults=[]), body=[Expr(value=Ellipsis())], decorator_list=[], returns=NameConstant(value=None), type_comment=None)], type_ignores=[]) +``` + +This bug was discovered in https://github.com/python/mypy/pull/13547 + +## 1.5.7 (2022-07-19) + +Third-party stubs: enforce CamelCase for type alias names (#8256) + +Co-authored-by: Jelle Zijlstra <[email protected]> + +## 1.5.6 (2022-05-26) + +Third-party stubs: fix several fictitious type aliases (#7958) + +## 1.5.5 (2022-05-21) + +Simplify and correct many numeric unions (#7906) + +Unblocks PyCQA/flake8-pyi#222 + +## 1.5.4 (2022-04-20) + +Use `TypeAlias` for type aliases where possible, part II (#7667) + +## 1.5.3 (2022-04-16) + +Third-party stubs: import from `collections.abc` where possible (#7637) + ## 1.5.1 (2021-12-28) Use PEP 585 syntax wherever possible (#6717) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.1/PKG-INFO new/types-typed-ast-1.5.8.3/PKG-INFO --- old/types-typed-ast-1.5.1/PKG-INFO 2021-12-28 13:31:32.991101000 +0100 +++ new/types-typed-ast-1.5.8.3/PKG-INFO 2022-11-14 13:47:26.676382300 +0100 @@ -1,12 +1,16 @@ Metadata-Version: 2.1 Name: types-typed-ast -Version: 1.5.1 +Version: 1.5.8.3 Summary: Typing stubs for typed-ast Home-page: https://github.com/python/typeshed License: Apache-2.0 license -Platform: UNKNOWN +Project-URL: GitHub, https://github.com/python/typeshed +Project-URL: Changes, https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/typed-ast.md +Project-URL: Issue tracker, https://github.com/python/typeshed/issues +Project-URL: Chat, https://gitter.im/python/typing Classifier: License :: OSI Approved :: Apache Software License -Classifier: Typing :: Typed +Classifier: Programming Language :: Python :: 3 +Classifier: Typing :: Stubs Only Description-Content-Type: text/markdown ## Typing stubs for typed-ast @@ -14,10 +18,8 @@ This is a PEP 561 type stub package for the `typed-ast` package. It can be used by type-checking tools like mypy, PyCharm, pytype etc. to check code that uses `typed-ast`. The source for this package can be found at -https://github.com/python/typeshed/tree/master/stubs/typed-ast. All fixes for +https://github.com/python/typeshed/tree/main/stubs/typed-ast. All fixes for types and metadata should be contributed there. -See https://github.com/python/typeshed/blob/master/README.md for more details. -This package was generated from typeshed commit `22bf9e8a787b38b1a0e193edd5b47119e43286ca`. - - +See https://github.com/python/typeshed/blob/main/README.md for more details. +This package was generated from typeshed commit `1733c460582e6bf83a3592e5b24f9fd0e3fdeddc`. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.1/setup.py new/types-typed-ast-1.5.8.3/setup.py --- old/types-typed-ast-1.5.1/setup.py 2021-12-28 13:31:32.000000000 +0100 +++ new/types-typed-ast-1.5.8.3/setup.py 2022-11-14 13:47:25.000000000 +0100 @@ -8,25 +8,32 @@ This is a PEP 561 type stub package for the `typed-ast` package. It can be used by type-checking tools like mypy, PyCharm, pytype etc. to check code that uses `typed-ast`. The source for this package can be found at -https://github.com/python/typeshed/tree/master/stubs/typed-ast. All fixes for +https://github.com/python/typeshed/tree/main/stubs/typed-ast. All fixes for types and metadata should be contributed there. -See https://github.com/python/typeshed/blob/master/README.md for more details. -This package was generated from typeshed commit `22bf9e8a787b38b1a0e193edd5b47119e43286ca`. +See https://github.com/python/typeshed/blob/main/README.md for more details. +This package was generated from typeshed commit `1733c460582e6bf83a3592e5b24f9fd0e3fdeddc`. '''.lstrip() setup(name=name, - version="1.5.1", + version="1.5.8.3", description=description, long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/python/typeshed", + project_urls={ + "GitHub": "https://github.com/python/typeshed", + "Changes": "https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/typed-ast.md", + "Issue tracker": "https://github.com/python/typeshed/issues", + "Chat": "https://gitter.im/python/typing", + }, install_requires=[], packages=['typed_ast-stubs'], package_data={'typed_ast-stubs': ['__init__.pyi', 'ast27.pyi', 'ast3.pyi', 'conversions.pyi', 'METADATA.toml']}, license="Apache-2.0 license", classifiers=[ "License :: OSI Approved :: Apache Software License", - "Typing :: Typed", + "Programming Language :: Python :: 3", + "Typing :: Stubs Only", ] ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.1/typed_ast-stubs/METADATA.toml new/types-typed-ast-1.5.8.3/typed_ast-stubs/METADATA.toml --- old/types-typed-ast-1.5.1/typed_ast-stubs/METADATA.toml 2021-12-28 13:31:32.000000000 +0100 +++ new/types-typed-ast-1.5.8.3/typed_ast-stubs/METADATA.toml 2022-11-14 13:47:25.000000000 +0100 @@ -1 +1,4 @@ version = "1.5.*" + +[tool.stubtest] +ignore_missing_stub = false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.1/typed_ast-stubs/ast27.pyi new/types-typed-ast-1.5.8.3/typed_ast-stubs/ast27.pyi --- old/types-typed-ast-1.5.1/typed_ast-stubs/ast27.pyi 2021-12-28 13:29:14.000000000 +0100 +++ new/types-typed-ast-1.5.8.3/typed_ast-stubs/ast27.pyi 2022-11-14 13:47:14.000000000 +0100 @@ -1,4 +1,7 @@ -from typing import Any, Iterator +from _typeshed import ReadableBuffer +from collections.abc import Iterator +from typing import Any +from typing_extensions import TypeAlias class NodeVisitor: def visit(self, node: AST) -> Any: ... @@ -7,11 +10,11 @@ class NodeTransformer(NodeVisitor): def generic_visit(self, node: AST) -> None: ... -def parse(source: str | bytes, filename: str | bytes = ..., mode: str = ...) -> AST: ... +def parse(source: str | ReadableBuffer, filename: str | ReadableBuffer = ..., mode: str = ...) -> AST: ... def copy_location(new_node: AST, old_node: AST) -> AST: ... def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ... def fix_missing_locations(node: AST) -> AST: ... -def get_docstring(node: AST, clean: bool = ...) -> bytes | None: ... +def get_docstring(node: AST, clean: bool = ...) -> str | bytes | None: ... def increment_lineno(node: AST, n: int = ...) -> AST: ... def iter_child_nodes(node: AST) -> Iterator[AST]: ... def iter_fields(node: AST) -> Iterator[tuple[str, Any]]: ... @@ -22,7 +25,7 @@ # ast classes -identifier = str +_Identifier: TypeAlias = str class AST: _attributes: tuple[str, ...] @@ -53,14 +56,14 @@ col_offset: int class FunctionDef(stmt): - name: identifier + name: _Identifier args: arguments body: list[stmt] decorator_list: list[expr] type_comment: str | None class ClassDef(stmt): - name: identifier + name: _Identifier bases: list[expr] body: list[stmt] decorator_list: list[expr] @@ -131,7 +134,7 @@ names: list[alias] class ImportFrom(stmt): - module: identifier | None + module: _Identifier | None names: list[alias] level: int | None @@ -141,7 +144,7 @@ locals: expr | None class Global(stmt): - names: list[identifier] + names: list[_Identifier] class Expr(stmt): value: expr @@ -151,7 +154,7 @@ class Continue(stmt): ... class slice(AST): ... -_slice = slice # this lets us type the variable named 'slice' below +_Slice: TypeAlias = slice # this lets us type the variable named 'slice' below class Slice(slice): lower: expr | None @@ -243,16 +246,16 @@ class Attribute(expr): value: expr - attr: identifier + attr: _Identifier ctx: expr_context class Subscript(expr): value: expr - slice: _slice + slice: _Slice ctx: expr_context class Name(expr): - id: identifier + id: _Identifier ctx: expr_context class List(expr): @@ -317,18 +320,18 @@ class arguments(AST): args: list[expr] - vararg: identifier | None - kwarg: identifier | None + vararg: _Identifier | None + kwarg: _Identifier | None defaults: list[expr] type_comments: list[str | None] class keyword(AST): - arg: identifier + arg: _Identifier value: expr class alias(AST): - name: identifier - asname: identifier | None + name: _Identifier + asname: _Identifier | None class TypeIgnore(AST): lineno: int diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.1/typed_ast-stubs/ast3.pyi new/types-typed-ast-1.5.8.3/typed_ast-stubs/ast3.pyi --- old/types-typed-ast-1.5.1/typed_ast-stubs/ast3.pyi 2021-12-28 13:29:14.000000000 +0100 +++ new/types-typed-ast-1.5.8.3/typed_ast-stubs/ast3.pyi 2022-11-14 13:47:14.000000000 +0100 @@ -1,4 +1,9 @@ -from typing import Any, Iterator +from _typeshed import ReadableBuffer +from collections.abc import Iterator +from typing import Any +from typing_extensions import TypeAlias + +LATEST_MINOR_VERSION: int class NodeVisitor: def visit(self, node: AST) -> Any: ... @@ -7,7 +12,9 @@ class NodeTransformer(NodeVisitor): def generic_visit(self, node: AST) -> None: ... -def parse(source: str | bytes, filename: str | bytes = ..., mode: str = ..., feature_version: int = ...) -> AST: ... +def parse( + source: str | ReadableBuffer, filename: str | ReadableBuffer = ..., mode: str = ..., feature_version: int = ... +) -> AST: ... def copy_location(new_node: AST, old_node: AST) -> AST: ... def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ... def fix_missing_locations(node: AST) -> AST: ... @@ -22,7 +29,7 @@ # ast classes -identifier = str +_Identifier: TypeAlias = str class AST: _attributes: tuple[str, ...] @@ -53,7 +60,7 @@ col_offset: int class FunctionDef(stmt): - name: identifier + name: _Identifier args: arguments body: list[stmt] decorator_list: list[expr] @@ -61,7 +68,7 @@ type_comment: str | None class AsyncFunctionDef(stmt): - name: identifier + name: _Identifier args: arguments body: list[stmt] decorator_list: list[expr] @@ -69,7 +76,7 @@ type_comment: str | None class ClassDef(stmt): - name: identifier + name: _Identifier bases: list[expr] keywords: list[keyword] body: list[stmt] @@ -149,15 +156,15 @@ names: list[alias] class ImportFrom(stmt): - module: identifier | None + module: _Identifier | None names: list[alias] level: int | None class Global(stmt): - names: list[identifier] + names: list[_Identifier] class Nonlocal(stmt): - names: list[identifier] + names: list[_Identifier] class Expr(stmt): value: expr @@ -167,7 +174,7 @@ class Continue(stmt): ... class slice(AST): ... -_slice = slice # this lets us type the variable named 'slice' below +_Slice: TypeAlias = slice # this lets us type the variable named 'slice' below class Slice(slice): lower: expr | None @@ -250,7 +257,7 @@ keywords: list[keyword] class Num(expr): - n: float | int | complex + n: int | float | complex class Str(expr): s: str @@ -274,12 +281,12 @@ class Attribute(expr): value: expr - attr: identifier + attr: _Identifier ctx: expr_context class Subscript(expr): value: expr - slice: _slice + slice: _Slice ctx: expr_context class Starred(expr): @@ -287,7 +294,7 @@ ctx: expr_context class Name(expr): - id: identifier + id: _Identifier ctx: expr_context class List(expr): @@ -347,7 +354,7 @@ class ExceptHandler(AST): type: expr | None - name: identifier | None + name: _Identifier | None body: list[stmt] lineno: int col_offset: int @@ -356,24 +363,24 @@ args: list[arg] vararg: arg | None kwonlyargs: list[arg] - kw_defaults: list[expr] + kw_defaults: list[expr | None] kwarg: arg | None defaults: list[expr] class arg(AST): - arg: identifier + arg: _Identifier annotation: expr | None lineno: int col_offset: int type_comment: str | None class keyword(AST): - arg: identifier | None + arg: _Identifier | None value: expr class alias(AST): - name: identifier - asname: identifier | None + name: _Identifier + asname: _Identifier | None class withitem(AST): context_expr: expr diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/types-typed-ast-1.5.1/types_typed_ast.egg-info/PKG-INFO new/types-typed-ast-1.5.8.3/types_typed_ast.egg-info/PKG-INFO --- old/types-typed-ast-1.5.1/types_typed_ast.egg-info/PKG-INFO 2021-12-28 13:31:32.000000000 +0100 +++ new/types-typed-ast-1.5.8.3/types_typed_ast.egg-info/PKG-INFO 2022-11-14 13:47:26.000000000 +0100 @@ -1,12 +1,16 @@ Metadata-Version: 2.1 Name: types-typed-ast -Version: 1.5.1 +Version: 1.5.8.3 Summary: Typing stubs for typed-ast Home-page: https://github.com/python/typeshed License: Apache-2.0 license -Platform: UNKNOWN +Project-URL: GitHub, https://github.com/python/typeshed +Project-URL: Changes, https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/typed-ast.md +Project-URL: Issue tracker, https://github.com/python/typeshed/issues +Project-URL: Chat, https://gitter.im/python/typing Classifier: License :: OSI Approved :: Apache Software License -Classifier: Typing :: Typed +Classifier: Programming Language :: Python :: 3 +Classifier: Typing :: Stubs Only Description-Content-Type: text/markdown ## Typing stubs for typed-ast @@ -14,10 +18,8 @@ This is a PEP 561 type stub package for the `typed-ast` package. It can be used by type-checking tools like mypy, PyCharm, pytype etc. to check code that uses `typed-ast`. The source for this package can be found at -https://github.com/python/typeshed/tree/master/stubs/typed-ast. All fixes for +https://github.com/python/typeshed/tree/main/stubs/typed-ast. All fixes for types and metadata should be contributed there. -See https://github.com/python/typeshed/blob/master/README.md for more details. -This package was generated from typeshed commit `22bf9e8a787b38b1a0e193edd5b47119e43286ca`. - - +See https://github.com/python/typeshed/blob/main/README.md for more details. +This package was generated from typeshed commit `1733c460582e6bf83a3592e5b24f9fd0e3fdeddc`.
