commit mypy for openSUSE:Factory

2023-08-16 Thread Source-Sync
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-08-16 14:16:39

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.11712 (New)


Package is "mypy"

Wed Aug 16 14:16:39 2023 rev:40 rq:1103792 version:1.5.0

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2023-07-19 
19:10:48.996630222 +0200
+++ /work/SRC/openSUSE:Factory/.mypy.new.11712/mypy.changes 2023-08-16 
14:16:59.742935271 +0200
@@ -1,0 +2,67 @@
+Sun Aug 13 06:30:29 UTC 2023 - Sebastian Wagner 
+
+- update to version 1.5.0:
+ - Drop Support for Python 3.7
+  - Mypy no longer supports running with Python 3.7, which has reached 
end-of-life. This was contributed by Shantanu (PR 15566).
+ - Optional Check to Require Explicit @override
+  - If you enable the explicit-override error code, mypy will generate an 
error if a method override doesn’t use the @typing.override decorator (as 
discussed in PEP 698). This way mypy will detect accidentally introduced 
overrides.
+  - You can enable the error code via --enable-error-code=explicit-override on 
the mypy command line or enable_error_code = explicit-override in the mypy 
config file.
+  - The override decorator will be available in typing in Python 3.12, but you 
can also use the backport from a recent version of typing_extensions on all 
supported Python versions.
+ - More Flexible TypedDict Creation and Update
+  - Mypy was previously overly strict when type checking TypedDict creation 
and update operations. Though these checks were often technically correct, they 
sometimes triggered for apparently valid code. These checks have now been 
relaxed by default. You can enable stricter checking by using the new 
--extra-checks flag.
+ - Deprecated Flag: --strict-concatenate
+  - The behavior of --strict-concatenate is now included in the new 
--extra-checks flag, and the old flag is deprecated.
+  - Optionally Show Links to Error Code Documentation
+  - If you use --show-error-code-links, mypy will add documentation links to 
(many) reported errors. The links are not shown for error messages that are 
sufficiently obvious, and they are shown once per error code only.
+ - Consistently Avoid Type Checking Unreachable Code
+  - If a module top level has unreachable code, mypy won’t type check the 
unreachable statements. This is consistent with how functions behave. The 
behavior of --warn-unreachable is also more consistent now.
+ - Experimental Improved Type Inference for Generic Functions
+  - You can use --new-type-inference to opt into an experimental new type 
inference algorithm. It fixes issues when calling a generic functions with an 
argument that is also a generic function, in particular. This current 
implementation is still incomplete, but we encourage trying it out and 
reporting bugs if you encounter regressions. We are planning to enable the new 
algorithm by default in a future mypy release.
+ - Partial Support for Python 3.12
+  - Mypy and mypyc now support running on recent Python 3.12 development 
versions. Not all new Python 3.12 features are supported, and we don’t ship 
compiled wheels for Python 3.12 yet.
+ - Improvements to Dataclasses
+  - Improve signature of dataclasses.replace (Ilya Priven, PR 14849)
+  - Fix dataclass/protocol crash on joining types (Ilya Priven, PR 15629)
+  - Fix strict optional handling in dataclasses (Ivan Levkivskyi, PR 15571)
+  - Support optional types for custom dataclass descriptors (Marc Mueller, PR 
15628)
+  - Add __slots__ attribute to dataclasses (Nikita Sobolev, PR 15649)
+  - Support better __post_init__ method signature for dataclasses (Nikita 
Sobolev, PR 15503) 
+ - Mypyc Improvements
+  - Support unsigned 8-bit native integer type: mypy_extensions.u8 (Jukka 
Lehtosalo, PR 15564)
+  - Support signed 16-bit native integer type: mypy_extensions.i16 (Jukka 
Lehtosalo, PR 15464)
+  - Define mypy_extensions.i16 in stubs (Jukka Lehtosalo, PR 15562)
+  - Document more unsupported features and update supported features (Richard 
Si, PR 15524)
+  - Fix final NamedTuple classes (Richard Si, PR 15513)
+  - Use C99 compound literals for undefined tuple values (Jukka Lehtosalo, PR 
15453)
+  - Don't explicitly assign NULL values in setup functions (Logan Hunt, PR 
15379) 
+ - Stubgen Improvements
+  - Teach stubgen to work with complex and unary expressions (Nikita Sobolev, 
PR 15661)
+  - Support ParamSpec and TypeVarTuple (Ali Hamdan, PR 15626)
+  - Fix crash on non-str docstring (Ali Hamdan, PR 15623) 
+ - Documentation Updates
+  - Add documentation for additional error codes (Ivan Levkivskyi, PR 15539)
+  - Improve documentation of type narrowing (Ilya Priven, PR 15652)
+  - Small improvements to protocol documentation (Shantanu, PR 

commit mypy for openSUSE:Factory

2023-07-19 Thread Source-Sync
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-07-19 19:10:47

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.5570 (New)


Package is "mypy"

Wed Jul 19 19:10:47 2023 rev:39 rq:1099368 version:1.4.1

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2023-06-21 
22:40:28.794595318 +0200
+++ /work/SRC/openSUSE:Factory/.mypy.new.5570/mypy.changes  2023-07-19 
19:10:48.996630222 +0200
@@ -1,0 +2,6 @@
+Sun Jul 16 08:34:41 UTC 2023 - Sebastian Wagner 
+
+- Update to 1.4.1
+- disable pep561 tests, as they fail on Python 3.11.4, see 
https://github.com/python/mypy/issues/15446
+
+---

Old:

  mypy-1.4.0.tar.gz
  types-psutil-5.9.5.12.tar.gz
  types-setuptools-67.7.0.1.tar.gz
  types-typed-ast-1.5.8.6.tar.gz

New:

  mypy-1.4.1.tar.gz
  types-psutil-5.9.5.15.tar.gz
  types-setuptools-68.0.0.2.tar.gz
  types-typed-ast-1.5.8.7.tar.gz



Other differences:
--
++ mypy.spec ++
--- /var/tmp/diff_new_pack.Xz2igP/_old  2023-07-19 19:10:50.968641757 +0200
+++ /var/tmp/diff_new_pack.Xz2igP/_new  2023-07-19 19:10:50.976641803 +0200
@@ -19,11 +19,11 @@
 %{?sle15_python_module_pythons}
 %bcond_without test
 %define skip_python2 1
-%define typed_ast_version 1.5.8.6
-%define types_psutil_version 5.9.5.12
-%define types_setuptools_version 67.7.0.1
+%define typed_ast_version 1.5.8.7
+%define types_psutil_version 5.9.5.15
+%define types_setuptools_version 68.0.0.2
 Name:   mypy
-Version:1.4.0
+Version:1.4.1
 Release:0
 Summary:Optional static typing for Python
 License:MIT
@@ -143,7 +143,9 @@
 donttest+=" or teststubtest"
 # gh#python/mypy#15221
 donttest+=" or testMathOps or testFloatOps"
-%pytest -n auto -k "not (testallexcept ${donttest} ${$python_donttest})"
+# fails on Python 3.11.4, see gh#python/mypy#15446. Patch 
db5b5af1201fff03465b0684d16b6489a62a3d78 does not apply clean, better wait for 
a new upstream version
+donttest+=" or PEP561Suite"
+%pytest -n auto -k "not (testallexcept ${donttest} ${$python_donttest})" -x
 %endif
 
 %post

++ mypy-1.4.0.tar.gz -> mypy-1.4.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mypy-1.4.0/PKG-INFO new/mypy-1.4.1/PKG-INFO
--- old/mypy-1.4.0/PKG-INFO 2023-06-15 00:02:11.20339 +0200
+++ new/mypy-1.4.1/PKG-INFO 2023-06-25 22:08:15.647109000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: mypy
-Version: 1.4.0
+Version: 1.4.1
 Summary: Optional static typing for Python
 Home-page: https://www.mypy-lang.org/
 Author: Jukka Lehtosalo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mypy-1.4.0/docs/source/conf.py 
new/mypy-1.4.1/docs/source/conf.py
--- old/mypy-1.4.0/docs/source/conf.py  2023-06-15 00:01:39.0 +0200
+++ new/mypy-1.4.1/docs/source/conf.py  2023-06-25 22:07:41.0 +0200
@@ -35,7 +35,7 @@
 # Add any Sphinx extension module names here, as strings. They can be
 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
 # ones.
-extensions = ["sphinx.ext.intersphinx"]
+extensions = ["sphinx.ext.intersphinx", "docs.source.html_builder"]
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ["_templates"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mypy-1.4.0/docs/source/error_code_list.rst 
new/mypy-1.4.1/docs/source/error_code_list.rst
--- old/mypy-1.4.0/docs/source/error_code_list.rst  2023-06-15 
00:01:39.0 +0200
+++ new/mypy-1.4.1/docs/source/error_code_list.rst  2023-06-25 
22:07:41.0 +0200
@@ -8,6 +8,8 @@
 about error codes. :ref:`error-codes-optional` documents additional
 error codes that you can enable.
 
+.. _code-attr-defined:
+
 Check that attribute exists [attr-defined]
 --
 
@@ -43,6 +45,8 @@
 above example, the type of ``non_existent`` will be ``Any``, which can
 be important if you silence the error.
 
+.. _code-union-attr:
+
 Check that attribute exists in each union item [union-attr]
 ---
 
@@ -75,6 +79,8 @@
 or ``assert obj is not None`` to tell mypy that you know that the type is more 
specific
 than what mypy thinks.
 
+.. _code-name-defined:
+
 Check that name is defined [name-defined]
 -
 
@@ -89,6 +95,7 @@
 
 x = sort([3, 2, 4])  # Error: Name "sort" is not defined  [name-defined]
 
+.. _code-used-before-def:
 
 Check that a variable is not 

commit mypy for openSUSE:Factory

2023-06-21 Thread Source-Sync
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-06-21 22:39:23

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.15902 (New)


Package is "mypy"

Wed Jun 21 22:39:23 2023 rev:38 rq:1094247 version:1.4.0

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2023-05-14 
16:34:00.299859594 +0200
+++ /work/SRC/openSUSE:Factory/.mypy.new.15902/mypy.changes 2023-06-21 
22:40:28.794595318 +0200
@@ -1,0 +2,9 @@
+Tue Jun 20 20:50:48 UTC 2023 - Matej Cepl 
+
+- Update to 1.4.0:
+  - The Override Decorator
+  - Propagating Type Narrowing to Nested Functions
+  - Narrowing Enum Values Using “==”
+  - Performance Improvements
+
+---

Old:

  mypy-1.3.0.tar.gz

New:

  mypy-1.4.0.tar.gz



Other differences:
--
++ mypy.spec ++
--- /var/tmp/diff_new_pack.lldzty/_old  2023-06-21 22:40:29.394598930 +0200
+++ /var/tmp/diff_new_pack.lldzty/_new  2023-06-21 22:40:29.398598953 +0200
@@ -23,7 +23,7 @@
 %define types_psutil_version 5.9.5.12
 %define types_setuptools_version 67.7.0.1
 Name:   mypy
-Version:1.3.0
+Version:1.4.0
 Release:0
 Summary:Optional static typing for Python
 License:MIT
@@ -36,21 +36,18 @@
 # 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 mypy_extensions >= 1.0.0}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module tomli >= 1.1.0 if %python-base < 3.11}
 BuildRequires:  %{python_module typed-ast >= 1.4.0 if %python-base < 3.8}
 BuildRequires:  %{python_module typing_extensions >= 3.10}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-mypy_extensions >= 0.4.3
 Requires:   python-typing_extensions >= 3.10
-%if 0%{?python_version_nodots} < 38
-Requires:   python-typed-ast >= 1.4.0
-%endif
-%if 0%{?python_version_nodots} < 311
-Requires:   python-tomli >= 1.1.0
-%endif
+Requires:   (python-tomli >= 1.1.0 if python3-base < 3.11)
+Requires:   (python-typed-ast >= 1.4.0 if python3-base < 3.8)
 Requires(post): update-alternatives
 Requires(postun):update-alternatives
 %if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"

++ mypy-1.3.0.tar.gz -> mypy-1.4.0.tar.gz ++
 28913 lines of diff (skipped)


commit mypy for openSUSE:Factory

2023-05-14 Thread Source-Sync
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-05-14 16:31:35

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.1533 (New)


Package is "mypy"

Sun May 14 16:31:35 2023 rev:37 rq:1086859 version:1.3.0

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2023-05-07 
18:54:35.420127825 +0200
+++ /work/SRC/openSUSE:Factory/.mypy.new.1533/mypy.changes  2023-05-14 
16:34:00.299859594 +0200
@@ -1,0 +2,109 @@
+Thu May 11 06:02:09 UTC 2023 - Matej Cepl 
+
+- Skip over failing testMathOps (gh#python/mypy#15221).
+
+---
+Wed May 10 20:36:45 UTC 2023 - Matej Cepl 
+
+- Update to 1.3.0:
+  - Improve performance of union subtyping
+  - Add negative subtype caches
+  - Stubtest: Check that the stub is abstract if the runtime is,
+even when the stub is an overloaded method
+  - Stubtest: Verify stub methods or properties are decorated
+with @final if they are decorated with @final at runtime
+  - Stubtest: Fix stubtest false positives with TypedDicts at
+runtime
+  - Stubgen: Support @functools.cached_property
+  - Improvements to stubgenc
+  - Add support for converters with TypeVars on generic attrs
+classes
+  - Fix attrs.evolve on bound TypeVar
+  - Improve async documentation
+  - Improvements to cheat sheet
+  - Add documentation for bytes formatting error code
+  - Convert insecure links to use HTTPS
+  - Also mention overloads in async iterator documentation
+  - stubtest: Improve allowlist documentation
+  - Clarify "Using types... but not at runtime"
+  - Fix alignment of cheat sheet example
+  - Fix error for callback protocol matching against callable
+type object
+  - Improve bytes formatting error
+  - Fix unions of bools and ints
+  - Fix narrowing union types that include Self with isinstance
+  - Allow objects matching SupportsKeysAndGetItem to be unpacked
+  - Check type guard validity for staticmethods
+  - Fix sys.platform when cross-compiling with emscripten
+
+---
+Mon May  8 13:56:42 UTC 2023 - Johannes Kastl 
+
+- add sle15_python_module_pythons
+
+---
+Sun May  7 09:54:51 UTC 2023 - Sebastian Wagner 
+
+- update typed_ast to version 1.5.8.6
+- update types_psutil to version 5.9.5.12
+- update types_setuptools to version 67.7.0.1
+- fix "E: wrong-script-end-of-line-encoding" and "E: spurious-executable-perm" 
for docs/make.bat
+- fix "W: python-doc-in-package" for %{$python_sitelib}/mypyc/doc in Python 
3.9, 3.10 and 3.11
+- update mypy to version 1.2.0:
+ - Improvements to Dataclass Transforms
+  - Support implicit default for "init" parameter in field specifiers (Wesley 
Collin Wright and Jukka Lehtosalo, PR 15010)
+  - Support descriptors in dataclass transform (Jukka Lehtosalo, PR 15006)
+  - Fix frozen_default in incremental mode (Wesley Collin Wright)
+  - Fix frozen behavior for base classes with direct metaclasses (Wesley 
Collin Wright, PR 14878) 
+ - Mypyc: Native Floats
+  - Mypyc now uses a native, unboxed representation for values of type float. 
Previously these were heap-allocated Python objects. Native floats are faster 
and use less memory. Code that uses floating-point operations heavily can be 
several times faster when using native floats.
+  - Various float operations and math functions also now have optimized 
implementations. Refer to the documentation for a full list.
+  - This can change the behavior of existing code that uses subclasses of 
float. When assigning an instance of a subclass of float to a variable with the 
float type, it gets implicitly converted to a float instance when compiled
+  - Previously, implicit conversions were applied to int subclasses but not 
float subclasses.
+  - Also, int values can no longer be assigned to a variable with type float 
in compiled code, since these types now have incompatible representations. An 
explicit conversion is required.
+  - This restriction only applies to assignments, since they could otherwise 
narrow down the type of a variable from float to int. int values can still be 
implicitly converted to float when passed as arguments to functions that expect 
float values.
+  - Note that mypyc still doesn’t support arrays of unboxed float values. 
Using list[float] involves heap-allocated float objects, since list can only 
store boxed values. Support for efficient floating point arrays is one of the 
next major planned mypyc features.
+  - Related changes:
+   - Use a native unboxed representation for floats (Jukka Lehtosalo, PR 14880)
+   - Document native floats and integers (Jukka Lehtosalo, PR 

commit mypy for openSUSE:Factory

2023-05-07 Thread Source-Sync
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-05-07 18:54:30

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.1533 (New)


Package is "mypy"

Sun May  7 18:54:30 2023 rev:36 rq:1085248 version:1.1.1

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2023-04-11 
13:51:22.247434220 +0200
+++ /work/SRC/openSUSE:Factory/.mypy.new.1533/mypy.changes  2023-05-07 
18:54:35.420127825 +0200
@@ -1,0 +2,12 @@
+Wed Apr 12 12:37:48 UTC 2023 - Matej Cepl 
+
+- Update to 1.1.1:
+  - Support for dataclass_transform (as defined in PEP-681).
+  - Dedicated Error Code for Method Assignments
+  - Stubgen improvements
+  - Stubtest improvements
+  - Typeshed updates
+  - Plenty of fixes
+- Removed upstreamed patch testI64Cast-fix.patch
+  
+---
@@ -9 +21 @@
-- Don't skipp the test, add testI64Cast-fix.patch to make it
+- Don't skip the test, add testI64Cast-fix.patch to make it

Old:

  mypy-1.0.0.tar.gz
  testI64Cast-fix.patch

New:

  mypy-1.1.1.tar.gz



Other differences:
--
++ mypy.spec ++
--- /var/tmp/diff_new_pack.25V3zm/_old  2023-05-07 18:54:37.068137020 +0200
+++ /var/tmp/diff_new_pack.25V3zm/_new  2023-05-07 18:54:37.068137020 +0200
@@ -22,7 +22,7 @@
 %define types_psutil_version 5.9.5.6
 %define types_setuptools_version 65.6.0.3
 Name:   mypy
-Version:1.0.0
+Version:1.1.1
 Release:0
 Summary:Optional static typing for Python
 License:MIT
@@ -35,9 +35,6 @@
 # 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
-# PATCH-FIX-UPSTREAM testI64Cast-fix.patch gh#python/mypy#14633 mc...@suse.com
-# Add test data for 32bit
-Patch0: testI64Cast-fix.patch
 BuildRequires:  %{python_module mypy_extensions >= 0.4.3}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module tomli >= 1.1.0 if %python-base < 3.11}

++ mypy-1.0.0.tar.gz -> mypy-1.1.1.tar.gz ++
 38149 lines of diff (skipped)


commit mypy for openSUSE:Factory

2023-04-11 Thread Source-Sync
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-04-11 13:51:11

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.19717 (New)


Package is "mypy"

Tue Apr 11 13:51:11 2023 rev:35 rq:1078346 version:1.0.0

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2023-02-14 
16:48:00.407358214 +0100
+++ /work/SRC/openSUSE:Factory/.mypy.new.19717/mypy.changes 2023-04-11 
13:51:22.247434220 +0200
@@ -1,0 +2,5 @@
+Tue Apr 11 07:15:55 UTC 2023 - Steve Kowalik 
+
+- Sadly, six is still required for tests, re-add to BuildRequires. 
+
+---



Other differences:
--
++ mypy.spec ++
--- /var/tmp/diff_new_pack.95KKgo/_old  2023-04-11 13:51:22.875437858 +0200
+++ /var/tmp/diff_new_pack.95KKgo/_new  2023-04-11 13:51:22.879437881 +0200
@@ -26,7 +26,6 @@
 Release:0
 Summary:Optional static typing for Python
 License:MIT
-Group:  Development/Languages/Python
 URL:http://www.mypy-lang.org/
 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.
@@ -72,6 +71,7 @@
 BuildRequires:  %{python_module pytest >= 6.2}
 BuildRequires:  %{python_module pytest-forked >= 1.3}
 BuildRequires:  %{python_module pytest-xdist >= 1.34}
+BuildRequires:  %{python_module six}
 BuildRequires:  %{python_module typed-ast >= 1.4.0}
 BuildRequires:  %{python_module virtualenv >= 20.6}
 BuildRequires:  gcc-c++


commit mypy for openSUSE:Factory

2023-02-14 Thread Source-Sync
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-02-14 16:47:21

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.27156 (New)


Package is "mypy"

Tue Feb 14 16:47:21 2023 rev:34 rq:1065667 version:1.0.0

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2023-02-08 
17:20:28.053994527 +0100
+++ /work/SRC/openSUSE:Factory/.mypy.new.27156/mypy.changes 2023-02-14 
16:48:00.407358214 +0100
@@ -1,0 +2,6 @@
+Tue Feb 14 06:02:49 UTC 2023 - Matej Cepl 
+
+- Don't skipp the test, add testI64Cast-fix.patch to make it
+  working (gh#python/mypy#14691).
+
+---

New:

  testI64Cast-fix.patch



Other differences:
--
++ mypy.spec ++
--- /var/tmp/diff_new_pack.ek9JRb/_old  2023-02-14 16:48:00.999361709 +0100
+++ /var/tmp/diff_new_pack.ek9JRb/_new  2023-02-14 16:48:01.007361757 +0100
@@ -36,6 +36,9 @@
 # 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
+# PATCH-FIX-UPSTREAM testI64Cast-fix.patch gh#python/mypy#14633 mc...@suse.com
+# Add test data for 32bit
+Patch0: testI64Cast-fix.patch
 BuildRequires:  %{python_module mypy_extensions >= 0.4.3}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module tomli >= 1.1.0 if %python-base < 3.11}
@@ -132,8 +135,6 @@
 if [ $(getconf LONG_BIT) -ne 64 ]; then
   # gh#python/mypy#11148
   donttest+=" or testSubclassSpecialize or testMultiModuleSpecialize"
-  # gh#python/mypy#14633
-  donttest+=" or testI64Cast"
   # fails only in python36 (EOL)
   python36_donttest+=" or testIntOps"
 fi

++ testI64Cast-fix.patch ++
>From 552d28f1b0529018c47afdf733ea2bc8bf8d90eb Mon Sep 17 00:00:00 2001
From: Jukka Lehtosalo 
Date: Mon, 13 Feb 2023 17:18:41 +
Subject: [PATCH] [mypyc] Fix test case testI64Cast on 32-bit architectures

Add 64-bit and 32-bit variants of the test.

Fixes #14633.
---
 mypyc/test-data/irbuild-i64.test |   35 ++-
 1 file changed, 34 insertions(+), 1 deletion(-)

--- a/mypyc/test-data/irbuild-i64.test
+++ b/mypyc/test-data/irbuild-i64.test
@@ -1731,7 +1731,7 @@ def f5():
 L0:
 return 4
 
-[case testI64Cast]
+[case testI64Cast_64bit]
 from typing import cast
 from mypy_extensions import i64
 
@@ -1772,6 +1772,39 @@ L2:
 L3:
 return r3
 
+[case testI64Cast_32bit]
+from typing import cast
+from mypy_extensions import i64
+
+def cast_int(x: int) -> i64:
+return cast(i64, x)
+[out]
+def cast_int(x):
+x :: int
+r0 :: native_int
+r1 :: bit
+r2, r3, r4 :: int64
+r5 :: ptr
+r6 :: c_ptr
+r7 :: int64
+L0:
+r0 = x & 1
+r1 = r0 == 0
+if r1 goto L1 else goto L2 :: bool
+L1:
+r2 = extend signed x: builtins.int to int64
+r3 = r2 >> 1
+r4 = r3
+goto L3
+L2:
+r5 = x ^ 1
+r6 = r5
+r7 = CPyLong_AsInt64(r6)
+r4 = r7
+keep_alive x
+L3:
+return r4
+
 [case testI64ExplicitConversionFromVariousTypes]
 from mypy_extensions import i64
 


commit mypy for openSUSE:Factory

2023-02-08 Thread Source-Sync
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-02-08 17:20:03

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.4462 (New)


Package is "mypy"

Wed Feb  8 17:20:03 2023 rev:33 rq:1063669 version:1.0.0

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2023-01-25 
17:51:14.090644401 +0100
+++ /work/SRC/openSUSE:Factory/.mypy.new.4462/mypy.changes  2023-02-08 
17:20:28.053994527 +0100
@@ -1,0 +2,22 @@
+Tue Feb  7 13:56:17 UTC 2023 - Matej Cepl 
+
+- Skip failing test testI64Cast (gh#python/mypy#14633).
+
+---
+Tue Feb  7 08:42:15 UTC 2023 - Matej Cepl 
+
+- Update to 1.0.0 (YAY!):
+  - Mypy 1.0 is up to 40% faster than mypy 0.991 when type
+checking the Dropbox internal codebase. We also set up a
+daily job to measure the performance of the most recent
+development version of mypy to make it easier to track
+changes in performance.
+  - Warn About Variables Used Before Definition
+  - Detect Possibly Undefined Variables (Experimental)
+  - Support the “Self” Type
+  - Support ParamSpec in Type Aliases
+  - ParamSpec and Generic Self Types No Longer Experimental
+  - Miscellaneous New Features
+  - plenty of bug fixes
+
+---

Old:

  mypy-0.991.tar.gz

New:

  mypy-1.0.0.tar.gz



Other differences:
--
++ mypy.spec ++
--- /var/tmp/diff_new_pack.9Qccu4/_old  2023-02-08 17:20:28.645997433 +0100
+++ /var/tmp/diff_new_pack.9Qccu4/_new  2023-02-08 17:20:28.649997453 +0100
@@ -22,7 +22,7 @@
 %define types_psutil_version 5.9.5.6
 %define types_setuptools_version 65.6.0.3
 Name:   mypy
-Version:0.991
+Version:1.0.0
 Release:0
 Summary:Optional static typing for Python
 License:MIT
@@ -130,8 +130,10 @@
 # cannot compile unoptimized with suse headers
 export MYPYC_OPT_LEVEL=2
 if [ $(getconf LONG_BIT) -ne 64 ]; then
-  # https://github.com/python/mypy/issues/11148
+  # gh#python/mypy#11148
   donttest+=" or testSubclassSpecialize or testMultiModuleSpecialize"
+  # gh#python/mypy#14633
+  donttest+=" or testI64Cast"
   # fails only in python36 (EOL)
   python36_donttest+=" or testIntOps"
 fi

++ mypy-0.991.tar.gz -> mypy-1.0.0.tar.gz ++
 41795 lines of diff (skipped)


commit mypy for openSUSE:Factory

2023-01-25 Thread Source-Sync
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.changes2022-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 
+
+- 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.0 
+0100
+++ new/types-typed-ast-1.5.8.3/CHANGELOG.md2022-11-14 13:47:25.0 
+0100
@@ -1,3 +1,60 @@
+## 1.5.8.3 

commit mypy for openSUSE:Factory

2022-09-28 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mypy for openSUSE:Factory checked in 
at 2022-09-28 17:51:45

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.2275 (New)


Package is "mypy"

Wed Sep 28 17:51:45 2022 rev:31 rq:1006563 version:0.981

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2022-08-10 
17:12:32.525589298 +0200
+++ /work/SRC/openSUSE:Factory/.mypy.new.2275/mypy.changes  2022-09-28 
17:51:46.387234668 +0200
@@ -1,0 +2,31 @@
+Tue Sep 27 16:01:57 UTC 2022 - Daniel Garcia 
+
+- Remove mypy-pr13259-walrus.patch because it's not needed anymore, it's in the
+  release now -- gh#python/mypy#13259
+
+- Update to 0.981
+  - Drop support for Python3.6 and python2
+  - Generate Error on Unbound TypeVar Return Type
+  - Methods with Empty Bodies in Protocols Are Abstract
+  - Implicit Optional Types Will Be Disabled by Default
+  - Precise Types for **kwds Using TypedDict
+  - Experimental Support for General Recursive Types
+  - Generic NamedTuples and TypedDicts
+  - Better Support for Callable Attributes
+  - Per-Module Error Code Configuration
+  - Experimental Support for Interactive Inspection of Expressions
+  - Mypyc Improvements
+* Support async for as a statement and in comprehensions (Michael J.
+  Sullivan, PR 13444)
+* Support async with (Michael J. Sullivan, PR 13442)
+* Fix clang warning on different signs integer (Paul m. p. Peny, PR 13239)
+* Fix AttributeError message (Jukka Lehtosalo, PR 13382)
+* Fix __call__ subclasses (Ken Jin, PR 13152)
+* Fix setup conflict with attributes named up (davfsa, PR 13012)
+* Fix bad C generated for multiple assignment (Jukka Lehtosalo, PR 13147)
+* Update, simplify check version test (Shantanu, PR 13125)
+
+  The full release notes can be found here: 
+  https://mypy-lang.blogspot.com/2022/09/mypy-0981-released.html
+
+---

Old:

  mypy-0.971.tar.gz
  mypy-pr13259-walrus.patch

New:

  mypy-0.981.tar.gz



Other differences:
--
++ mypy.spec ++
--- /var/tmp/diff_new_pack.jQlLSv/_old  2022-09-28 17:51:46.927235754 +0200
+++ /var/tmp/diff_new_pack.jQlLSv/_new  2022-09-28 17:51:46.935235770 +0200
@@ -21,7 +21,7 @@
 %define skip_python2 1
 %define typed_ast_version 1.5.1
 Name:   mypy
-Version:0.971
+Version:0.981
 Release:0
 Summary:Optional static typing for Python
 License:MIT
@@ -31,8 +31,6 @@
 # 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
 Source99:   mypy-rpmlintrc
-# PATCH-FIX-UPSTREAM mypy-pr13259-walrus.patch gh#python/mypy#13259 -- fix 
test failures with Python >= 3.10.6
-Patch0: mypy-pr13259-walrus.patch
 BuildRequires:  %{python_module mypy_extensions >= 0.4.3}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module tomli >= 1.1.0 if %python-base < 3.11}

++ mypy-0.971.tar.gz -> mypy-0.981.tar.gz ++
 171343 lines of diff (skipped)


commit mypy for openSUSE:Factory

2022-08-10 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mypy for openSUSE:Factory checked in 
at 2022-08-10 17:12:25

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.1521 (New)


Package is "mypy"

Wed Aug 10 17:12:25 2022 rev:30 rq:993558 version:0.971

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2022-06-29 
16:01:56.184668878 +0200
+++ /work/SRC/openSUSE:Factory/.mypy.new.1521/mypy.changes  2022-08-10 
17:12:32.525589298 +0200
@@ -1,0 +2,83 @@
+Sat Aug  6 15:12:25 UTC 2022 - Ben Greiner 
+
+- Update Requirements
+- Add mypy-pr13259-walrus.patch -- gh#python/mypy#13259
+  * fix test failures with Python >= 3.10.6
+
+---
+Sat Aug  6 14:10:01 UTC 2022 - Matej Cepl 
+
+- Update to 0.971:
+  - Last Release Officially Supporting Python 2 and 3.6:
+- Support for Python 2 will be completely removed in the next
+  mypy feature release after this one, mypy 0.980.
+- Support for Python 3.6 will also be dropped in mypy 0.980,
+  since Python 3.6 has reached its end of life. It will be
+  still possible to target Python 3.6 using --python-version
+  in future mypy versions, but no bugs will be fixed that
+  affect only Python 3.6 (unless they are regressions). Also
+  note that typeshed just recently dropped Python 3.6
+  support, so standard library features only available in
+  Python 3.6 will not be supported.
+on https://mypy-lang.blogspot.com/2022/07/mypy-0971-released.html
+  - Mypyc Improvements and Fixes
+* Speed up accessing always defined native attributes (Jukka
+  Lehtosalo, PR 12600)
+* Reduce the overhead of reference counting (Jukka Lehtosalo,
+  PR 12805, PR 12810, PR 12817)
+* Fix Python 3.11 C API errors (97littleleaf11, PR 12850)
+* Generate smaller code for casts and some implicit type
+  coercions (Jukka Lehtosalo, PR 12839)
+* Optimize calling Python objects with zero or one arguments
+  (97littleleaf11, PR 12862)
+* Replace integer floor division by a power of two with a shift
+  (Jukka Lehtosalo, PR 12870)
+* Add primitives for faster access of float and tuple type
+  objects (Richard Si, PR 13078)
+* Fix compile error related to operator assignment in a
+  generator function (Zsolt Dollenstein, PR 13144)
+  - Stubtest Improvements
+* Allow ellipsis as default argument (Shantanu, PR 12838)
+* Support --version (Shantanu, PR 12852)
+* Check type variables and ParamSpecs (Shantanu, PR 12851)
+* Add error summary and other output tweaks (KotlinIsland, PR
+  12855)
+  - Other Notable Fixes and Improvements
+* Disallow assignments to awaited coroutines that do not return
+  (Shantanu, PR 12853)
+* Search sys.path for PEP 561 compliant packages (Ashley
+  Whetter, PR 11143)
+* Treat generators with await as async (Jared Hance, PR 12925)
+* Fix bug in constraints solver regarding ParamSpec upper
+  bounds (Alex Waygood, PR 12938)
+* Fix crash on redefined class variable annotated with
+  Final[] (Alex Waygood, PR 12951)
+* Improve handling of overloads with ParamSpec (Alex Waygood,
+  PR 12953)
+* Don???t suggest installing types packages for some third-party
+  packages that now include types or are obsolete (Shantanu, PR
+  12959)
+* Add a short note when an error may be fixed by adding an
+  await (Ivan Levkivskyi, PR 12958)
+* Support unannotated converters for attr.ib (t4lz, PR 12815)
+* Disallow undesirable implicit reexport with a from import
+  (Shantanu, PR 12704)
+* Fix crash when subclass method has the same name as a type
+  alias (Wesley Collin Wright, PR 13015)
+* Include end column offset in the mypy AST (bruno messias, PR
+  12972)
+* Fix "attribute 'arguments' of 'FuncDef' undefined"
+  incremental crash (Fr??d??ric Perrin, PR 12324)
+* Fix false positive error on multiple enum base classes (Alex
+  Waygood, PR 12963)
+* Don't add __match_args__ for dataclasses and named tuples on
+  Python versions lower than 3.10 (Stanislav K, PR 12503)
+* Fix crash when overriding partial-type attribute with method
+  (Jake Lishman, PR 12943)
+* Fix editable installs to current working directory (Shantanu,
+  PR 13161)
+  - Typeshed is now modular and distributed as separate PyPI
+packages for everything except the standard library stubs.
+Please see git log for full list of typeshed changes.
+
+---

Old:

  mypy-0.961.tar.gz

New:

  mypy-0.971.tar.gz
  mypy-pr13259-walrus.patch


commit mypy for openSUSE:Factory

2022-06-29 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mypy for openSUSE:Factory checked in 
at 2022-06-29 16:00:59

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.1548 (New)


Package is "mypy"

Wed Jun 29 16:00:59 2022 rev:29 rq:985591 version:0.961

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2022-04-01 
21:34:52.738306769 +0200
+++ /work/SRC/openSUSE:Factory/.mypy.new.1548/mypy.changes  2022-06-29 
16:01:56.184668878 +0200
@@ -1,0 +2,111 @@
+Tue Jun 21 09:00:36 UTC 2022 - Sebastian Wagner 
+
+- remove obsolete patch 12452-stringent-err-msg.patch
+- update to version 0.960:
+ - Recognise typing.LiteralString and typing_extensions.LiteralString as 
aliases to str.
+ - This does not add proper support for LiteralString, but this allows it to 
be used in type annotations and stubs. LiteralString will be included in Python 
3.11 (PEP 675), and it can be used to require that a value is an arbitrary 
literal string (once fully supported).
+ - Per-file Timing Stats
+ - When mypy is run with the (currently hidden) --timing-stats FILE option, 
mypy will record detailed information about time spent type checking each file 
(microseconds). When profiling mypy runs over a large codebase, it can be 
useful to know which files are the slowest to type check. We are happy to 
receive bug reports about unexpectedly slow type checking.
+ - Performance Improvements
+  - Cache type of container literals when possible (Hugues, PR 12707)
+  - Speed up type checking of nested if expressions (Hugues, PR 12700)
+  - Speed up type checking of container literals with tuple entries (Hugues, 
PR 12706)
+  - Speed up argument count check (Hugues, PR 12703)
+  - Speed up processing large error counts and improve error filtering 
(Hugues, PR 12631)
+ - Experimental Fast Module Lookup
+ - Use the new --fast-module-lookup to switch to an alternative import 
resolution implementation that is faster when a large number of folders share a 
top-level namespace. We???d like to hear if you notice an improvement when 
using this flag, so that we can potentially prioritize work to enable this by 
default.
+ - Documentation Updates
+  - Add information about classes and types to ???Getting started??? (Michael 
Lee, PR 6557)
+  - Mention no_type_check decorator in documentation (Shantanu, PR 12713)
+  - Remove most mentions of type comments from docs (Shantanu, PR 12683)
+  - Use PEP 585 syntax in "The type of class objects" (Alex Waygood, PR 12516)
+ - Improvements to Plugin System
+  - Add a class attribute hook to the plugin system (Danny Weinberg, PR 9881)
+  - Add an alternative class decorator hook that is less error-prone than the 
old one (Jukka Lehtosalo, PR 12762)
+ - ParamSpec Improvements
+  - Friendlier errors for ParamSpec (PEP 612) (Shantanu, PR 12832)
+  - Fix ParamSpec crash related to Any types (EXPLOSION, PR 12548)
+  - Use tuple[object, ...] and dict[str, object] as upper bounds for 
ParamSpec.args and ParamSpec.kwargs (Alex Waygood, PR 12668)
+ - Fixes to Crashes
+  - Fix crash on invalid Python executable (Pranav Rajpal, PR 12812)
+  - Fix crash on type alias definition inside dataclass declaration (Alex 
Waygood, PR 12792)
+  - Fix crash related to namedtuple in unannotated function (Jukka Lehtosalo, 
PR 12804)
+  - Fix nested namedtuple crash in incremental mode (Jukka Lehtosalo, PR 12803)
+  - Fix forward references and generic inheritance in attrs classes (Jukka 
Lehtosalo, PR 12772)
+  - mypyc: Fix TypeError in lambda argument to overloaded function (Jukka 
Lehtosalo, PR 12780)
+  - Fix crashes related to functools.total_ordering and forward references 
(Jukka Lehtosalo, PR 12767)
+  - Fix crashes related to dataclasses and forward references (Jukka 
Lehtosalo, PR 12762)
+  - Fix crash on invalid TypedDict definition (Alex Waygood, PR 12741)
+  - Fix crash when using decorator in class scope (dzcode, PR 12724)
+ - Other Notable Fixes and Improvements
+  - Fix type annotation support of dunder methods in stubgen (Fabian Keller, 
PR 12828)
+  - Fix some value patterns in match statements to be non-exhaustive 
(??t??p??n Horek, PR 12751)
+  - Generate error when using both abstractmethod and final (Tomoki Nakagawa, 
PR 12743)
+  - Add more precise error message for Callable annotation (frerikandriessen, 
PR 12518)
+  - Fix generic inference in functions with TypeGuard (Nikita Sobolev, PR 
11797)
+  - Add check if python_version was parsed as float in pyproject.toml (Marcel 
Otoboni, PR 12558)
+  - Fix nested overload merging (Marc Mueller, PR 12607)
+  - stubtest: Generate error if type alias doesn't exist at runtime (Alex 
Waygood, PR 12608)
+  - Support typing_extensions.overload (Jelle Zijlstra, PR 12602)
+- update to version 0.950:
+ - Recent 

commit mypy for openSUSE:Factory

2022-04-01 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mypy for openSUSE:Factory checked in 
at 2022-04-01 21:34:48

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.1900 (New)


Package is "mypy"

Fri Apr  1 21:34:48 2022 rev:28 rq:965437 version:0.942

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2022-03-24 
22:57:26.604218269 +0100
+++ /work/SRC/openSUSE:Factory/.mypy.new.1900/mypy.changes  2022-04-01 
21:34:52.738306769 +0200
@@ -1,0 +2,21 @@
+Mon Mar 28 15:33:14 UTC 2022 - Matej Cepl 
+
+- Add 12452-stringent-err-msg.patch to make mypy work
+  with more stringent error messages in Python
+  >= 3.10.3 (gh#python/mypy#12451).
+
+---
+Fri Mar 25 21:32:58 UTC 2022 - Sebastian Wagner 
+
+- Update to version 0.942:
+ - Fixes to Regressions:
+  - Let overload item have a more general return type than the implementation 
(Jukka Lehtosalo, PR 12435)
+  - Fix inheritance false positives with dataclasses/attrs (Jukka Lehtosalo, 
PR 12411)
+  - Support overriding dunder attributes in Enum subclass (Petter Friberg, PR 
12138)
+  - Fix small conditional overload regression (Marc Mueller, PR 12336)
+ - Other Fixes:
+  - Fix issues related to the order of processing in the builtins import cycle 
(Jukka Lehtosalo, PR 12431)
+  - Fix crash in match statement if class name is undefined (Jukka Lehtosalo, 
PR 12417)
+  - Allow non-final __match_args__ and overriding (Jukka Lehtosalo, PR 12415)
+
+---
@@ -4 +25 @@
-- Update to version 0.9.41:
+- Update to version 0.941:

Old:

  mypy-0.941.tar.gz

New:

  12452-stringent-err-msg.patch
  mypy-0.942.tar.gz



Other differences:
--
++ mypy.spec ++
--- /var/tmp/diff_new_pack.161mil/_old  2022-04-01 21:34:53.378299589 +0200
+++ /var/tmp/diff_new_pack.161mil/_new  2022-04-01 21:34:53.382299544 +0200
@@ -21,7 +21,7 @@
 %define skip_python2 1
 %define typed_ast_version 1.5.1
 Name:   mypy
-Version:0.941
+Version:0.942
 Release:0
 Summary:Optional static typing for Python
 License:MIT
@@ -31,6 +31,9 @@
 # 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
 Source99:   mypy-rpmlintrc
+# PATCH-FIX-UPSTREAM 12452-stringent-err-msg.patch gh#python/mypy#12451 
mc...@suse.com
+# Work with more stringent error messages in Python >= 3.10.3
+Patch0: 12452-stringent-err-msg.patch
 BuildRequires:  %{python_module mypy_extensions >= 0.4.3}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module tomli >= 1.1.0}

++ 12452-stringent-err-msg.patch ++
>From d7f0b6c849149c77f09e2773a667c7f1cc16ab74 Mon Sep 17 00:00:00 2001
From: Stanislav Levin 
Date: Fri, 25 Mar 2022 17:12:47 +0300
Subject: [PATCH] testcmdline: Sync assumption about error message for Python
 3.10.3

Python 3.10.3 is more correct about syntax error for
`mypy` test case `testBlocker`.

See https://bugs.python.org/issue46240 for details.

Closes #12451

Signed-off-by: Stanislav Levin 
---
 test-data/unit/cmdline.test |4 
 1 file changed, 4 insertions(+)

--- a/test-data/unit/cmdline.test
+++ b/test-data/unit/cmdline.test
@@ -1249,6 +1249,10 @@ Found 1 error in 1 file (errors prevente
 pkg/x.py:1: error: invalid syntax. Perhaps you forgot a comma?
 Found 1 error in 1 file (errors prevented further checking)
 == Return code: 2
+[out version>=3.10.3]
+pkg/x.py:1: error: invalid syntax
+Found 1 error in 1 file (errors prevented further checking)
+== Return code: 2
 
 [case testCmdlinePackageAndFile]
 # cmd: mypy -p pkg file

++ mypy-0.941.tar.gz -> mypy-0.942.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mypy-0.941/PKG-INFO new/mypy-0.942/PKG-INFO
--- old/mypy-0.941/PKG-INFO 2022-03-14 17:11:57.0 +0100
+++ new/mypy-0.942/PKG-INFO 2022-03-24 14:15:23.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: mypy
-Version: 0.941
+Version: 0.942
 Summary: Optional static typing for Python
 Home-page: http://www.mypy-lang.org/
 Author: Jukka Lehtosalo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mypy-0.941/mypy/build.py new/mypy-0.942/mypy/build.py
--- old/mypy-0.941/mypy/build.py2022-03-14 17:11:31.0 +0100
+++ new/mypy-0.942/mypy/build.py2022-03-24 14:14:49.0 +0100
@@ -2959,12 +2959,16 @@
 # Order the SCC's nodes using a heuristic.
  

commit mypy for openSUSE:Factory

2022-03-24 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mypy for openSUSE:Factory checked in 
at 2022-03-24 22:57:08

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.1900 (New)


Package is "mypy"

Thu Mar 24 22:57:08 2022 rev:27 rq:964181 version:0.941

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2022-01-23 
16:25:50.080533978 +0100
+++ /work/SRC/openSUSE:Factory/.mypy.new.1900/mypy.changes  2022-03-24 
22:57:26.604218269 +0100
@@ -1,0 +2,105 @@
+Mon Mar 14 21:44:08 UTC 2022 - Sebastian Wagner 
+
+- Update to version 0.9.41:
+ - No changelog available.
+
+---
+Mon Mar 14 21:35:28 UTC 2022 - Sebastian Wagner 
+
+- Update to version 0.940:
+ - Match Statement
+   Mypy now has experimental support for type checking match statements 
introduced in Python 3.10.
+ - Python 2 End-of-Life Schedule
+   After this release, Python 2 support is in feature freeze. Mypy won???t add 
new features or fixes specific to type checking Python 2 code, expect for fixes 
of significant regressions.
+   Mypy will drop Python 2 support in the second half of 2022.
+   Important note: Since typeshed is in the process of removing Python 2 
specific stubs, you should pin all installed typeshed stub packages for 
third-party libraries to a version from Feb 2022 or earlier if you want to type 
check Python 2 code.
+ - Miscellaneous New Features
+  - Add support for conditionally defined overloads (Marc Mueller, PR 10712)
+  - Give "as" variables in with statements separate scopes when it is safe to 
do so (Jukka Lehtosalo, PR 12254)
+  - Add an optional error code ignore-without-code to require ignore comments 
to have error codes (Peter Law, PR 11633)
+  - Add support for typing.Never and typing_extensions.Never as alternative 
spellings of NoReturn (Jelle Zijlstra, PR 12153)
+  - Add support for typing.reveal_type (Jelle Zijlstra, PR 12117)
+  - Support universal2 macOS wheels (97littleleaf11, PR 10651)
+  - Add match_args support to attr.s() (Nikita Sobolev, PR 12111)
+ - Enum Improvements
+  - Check Enum definition for invalid base classes (Nikita Sobolev, PR 12026)
+  - Understand the self-destructing nature of Enum._ignore_ (Kenny Stauffer, 
PR 12128)
+  - Add StrEnum support for Python 3.11 (Nikita Sobolev, PR 12035)
+  - Make enum values final (joey-laminar, PR 11962)
+  - Improve final detection for Enum (Nikita Sobolev, PR 11984)
+  - Fix Enum final properties and writable special members (Nikita Sobolev, PR 
11945)
+  - Enum now accepts String literals and final values as 2nd argument (Vincent 
Perez, PR 8664)
+  - Fix false positive about member name reuse in enum (Max Rossmannek, PR 
11972)
+  - Fix enum inheritance regression (Nikita Sobolev, PR 12260)
+ - Mypyc Fixes and Improvements
+  - Use Py_TYPE and Py_IsNone (97littleleaf11, PR 12233)
+  - Implement additional internal consistency checks (Jared Hance, PR 12191)
+  - Raise AttributeError also for non-refcounted types (Jukka Lehtosalo, PR 
11940)
+  - Fix invalid unlikely() in certain rare branches (Jukka Lehtosalo, PR 11939)
+  - Skip no-op super calls to object.__init__() (Jukka Lehtosalo, PR 11938)
+  - Use latest pythoncapi_compat (97littleleaf11, PR 12188)
+  - Add helpful message to assert (Joshua Cannon, PR 12119)
+ - Documentation Updates
+  - Add documentations about Enum types (Nikita Sobolev, PR 11805)
+  - Update Enum documentation (Nikita Sobolev, PR 12238)
+  - Improve documentation of allow_redefinition (KotlinIsland, PR 11951)
+  - Fix intelligent indexing example (Chris Keefe, PR 11973)
+  - Explain generic Protocol[T1, T2, ...] shorthand (Matt Bogosian, PR 12047)
+  - Clarify that stub-only packages need to be installed (Gustav Gr??nsbo, PR 
9958)
+  - Small documentation improvements for conditional overloads (Marc Mueller, 
PR 12283)
+ - Improved Error Messages
+  - Improve the "Argument must be a mapping" error message (Purna Chandra 
Mansingh, PR 1)
+  - Coalesce Literals when printing unions (Marti Raudsepp, PR 12205)
+  - Suggest typing.Callable when using callable as type (Tuomas Siipola, PR 
12204)
+  - Suggest typing.Any when using any as type (Tuomas Siipola, PR 12185)
+  - Add note about wrong error code in type: ignore (Jukka Lehtosalo, PR 12067)
+  - Add no-overload-impl error code (Brian Phillips, PR 11944)
+  - Display ellipsis when formatting variadic tuple[T, ...] (Marti Raudsepp, 
PR 11857)
+  - Deduplicate error codes for ignore-without-code (Marc Mueller, PR 12194)
+  - Tweak ignore-without-code error message (Marc Mueller, PR 12216)
+  - Mention common resolutions for build errors (Shantanu, PR 12154)
+ - Stubtest Improvements
+  - Ignore more dunder positional-only errors (Shantanu, PR 12294)
+  - 

commit mypy for openSUSE:Factory

2022-01-23 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mypy for openSUSE:Factory checked in 
at 2022-01-23 16:25:42

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.1938 (New)


Package is "mypy"

Sun Jan 23 16:25:42 2022 rev:26 rq:948161 version:0.931

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2022-01-15 
21:45:41.869629912 +0100
+++ /work/SRC/openSUSE:Factory/.mypy.new.1938/mypy.changes  2022-01-23 
16:25:50.080533978 +0100
@@ -1,0 +2,6 @@
+Sat Jan 22 18:36:56 UTC 2022 - Ben Greiner 
+
+- Skip teststubtest because we use a pytest-xdist version which is
+  not allowed by upstream -- gh#python/mypy#11019
+
+---



Other differences:
--
++ mypy.spec ++
--- /var/tmp/diff_new_pack.ESSGqP/_old  2022-01-23 16:25:50.648530096 +0100
+++ /var/tmp/diff_new_pack.ESSGqP/_new  2022-01-23 16:25:50.656530041 +0100
@@ -128,6 +128,9 @@
   # fails only in python36 (EOL)
   python36_donttest+=" or testIntOps"
 fi
+# the fake test_module is not in the modulepath without pytest-xdist
+# or with pytest-xdist >= 2.3 -- https://github.com/python/mypy/issues/11019
+donttest+=" or teststubtest"
 %pytest -n auto -k "not (testallexcept ${donttest} ${$python_donttest})"
 %endif
 


commit mypy for openSUSE:Factory

2022-01-15 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mypy for openSUSE:Factory checked in 
at 2022-01-15 21:45:14

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.1892 (New)


Package is "mypy"

Sat Jan 15 21:45:14 2022 rev:25 rq:946495 version:0.931

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2022-01-05 
15:44:33.906257364 +0100
+++ /work/SRC/openSUSE:Factory/.mypy.new.1892/mypy.changes  2022-01-15 
21:45:41.869629912 +0100
@@ -1,0 +2,21 @@
+Fri Jan  7 17:31:27 UTC 2022 - Sebastian Wagner 
+
+- Update to version 0.931:
+ - Fixes to Regressions
+  - Fix mypyc binary wheel (Michael R. Crusoe, PR 11862)
+  - Revert to treating multi-line strings as a single value for exclude in 
TOML files (Matt Bogosian, PR 11828)
+  - Revert to treating exclude in .ini as a single value (Matt Bogosian, PR 
11881)
+  - Fix __slots__ regression (Nikita Sobolev, PR 11824)
+  - Fix regression with __module__ and similar non-final Enum attributes 
(Nikita Sobolev, PR 11823)
+  - Fix regression when a contextmanager yields a generic function (Anthony 
Sottile, PR 11870)
+  - Fix __reduce__ regression (Shantanu, PR 11866)
+  - Fix NoReturn type aliases (Nikita Sobolev, PR 11912)
+  - Fix regression in None handling with --no-strict-optional (Nikita Sobolev, 
PR 11717)
+  - Fix crash related to generics (Nikita Sobolev, PR 11924)
+  - Restore removed builtin_type() plugin API method (Jukka Lehtosalo, PR 
11932)
+ - Other Fixes
+  - Always allow the use of type[T] in stubs (Nikita Sobolev, PR 11863)
+  - Fix PEP 585 type aliases in stubs (Shantanu, PR 11918)
+  - Fix bug with literal types in stubtest (Nikita Sobolev, PR 11931)
+
+---

Old:

  mypy-0.930.tar.gz

New:

  mypy-0.931.tar.gz



Other differences:
--
++ mypy.spec ++
--- /var/tmp/diff_new_pack.RUfyk6/_old  2022-01-15 21:45:42.341630162 +0100
+++ /var/tmp/diff_new_pack.RUfyk6/_new  2022-01-15 21:45:42.349630166 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package mypy
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,7 +21,7 @@
 %define skip_python2 1
 %define typed_ast_version 1.5.1
 Name:   mypy
-Version:0.930
+Version:0.931
 Release:0
 Summary:Optional static typing for Python
 License:MIT

++ mypy-0.930.tar.gz -> mypy-0.931.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mypy-0.930/PKG-INFO new/mypy-0.931/PKG-INFO
--- old/mypy-0.930/PKG-INFO 2021-12-22 15:56:21.0 +0100
+++ new/mypy-0.931/PKG-INFO 2022-01-07 15:59:24.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: mypy
-Version: 0.930
+Version: 0.931
 Summary: Optional static typing for Python
 Home-page: http://www.mypy-lang.org/
 Author: Jukka Lehtosalo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mypy-0.930/docs/source/config_file.rst 
new/mypy-0.931/docs/source/config_file.rst
--- old/mypy-0.930/docs/source/config_file.rst  2021-12-22 15:55:56.0 
+0100
+++ new/mypy-0.931/docs/source/config_file.rst  2022-01-07 15:58:59.0 
+0100
@@ -197,23 +197,62 @@
 
 .. confval:: exclude
 
-:type: newline separated list of regular expressions
+:type: regular expression
 
-A newline list of regular expression that matches file names, directory 
names and paths
+A regular expression that matches file names, directory names and paths
 which mypy should ignore while recursively discovering files to check.
 Use forward slashes on all platforms.
 
 .. code-block:: ini
 
   [mypy]
-  exclude =
-  ^file1\.py$
-  ^file2\.py$
+  exclude = (?x)(
+  ^one\.py$# files named "one.py"
+  | two\.pyi$  # or files ending with "two.pyi"
+  | ^three\.   # or files starting with "three."
+)
+
+Crafting a single regular expression that excludes multiple files while 
remaining
+human-readable can be a challenge. The above example demonstrates one 
approach.
+``(?x)`` enables the ``VERBOSE`` flag for the subsequent regular 
expression, which
+`ignores most whitespace and supports comments`__. The above is equivalent 
to:
+``(^one\.py$|two\.pyi$|^three\.)``.
+
+.. __: https://docs.python.org/3/library/re.html#re.X
 
 For more details, see :option:`--exclude `.
 
 This option may only be set in the global section (``[mypy]``).
 
+ 

commit mypy for openSUSE:Factory

2022-01-05 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mypy for openSUSE:Factory checked in 
at 2022-01-05 15:44:28

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.1896 (New)


Package is "mypy"

Wed Jan  5 15:44:28 2022 rev:24 rq:943409 version:0.930

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2021-11-12 
15:58:59.462557421 +0100
+++ /work/SRC/openSUSE:Factory/.mypy.new.1896/mypy.changes  2022-01-05 
15:44:33.906257364 +0100
@@ -1,0 +2,207 @@
+Fri Dec 31 19:58:41 UTC 2021 - Ben Greiner 
+
+- Need typed_ast for all flavors in testing
+- Skip failing tests on 32-bit: gh#python/mypy#11148
+
+---
+Fri Dec 31 17:17:41 UTC 2021 - Sebastian Wagner 
+
+- add missing g++ compiler for tests 
+
+---
+Fri Dec 31 16:40:37 UTC 2021 - Sebastian Wagner 
+
+- add python-psutil as optional dependency.
+
+---
+Fri Dec 31 11:48:26 UTC 2021 - Benjamin Greiner 
+
+- Update requirements
+- Reenable testsuite by including the typed_ast stubs manually
+
+---
+Wed Dec 22 20:10:32 UTC 2021 - Sebastian Wagner 
+
+- Update to version 0.930:
+ - New Feature: Explicit Type Aliases (PEP 613)
+  - You can now explicitly mark an assignment as a type alias, by using 
typing.TypeAlias
+  - For more context, see the docs or PEP 613.
+ - New Feature: NotRequired in TypedDicts
+  - You can now define individual TypedDict items as non-required by using 
typing_extensions.NotRequired. Previously this could only be configured at 
TypedDict level (by using total=).
+  - You can also use typing_extensions.Required to mark an item as required in 
a non-total TypedDict.
+ - New Feature: ParamSpec (Experimental)
+  - Mypy now partially support ParamSpec, which was introduced in Python 3.10. 
This makes it possible to define type variables that range over the parameter 
specification of a callable type. In particular, it allows giving precise types 
for some decorators that change the return type of the decorated function.
+ - Miscellaneous New Features
+  - Define a GitHub Action that makes it easier to run mypy in GitHub CI 
workflows (Elvis Pranskevichus, PR 11320)
+  - Allow mypy to run self check on PyPy 3.8 beta (Ethan Smith, PR 11350)
+  - Check that enum values are unique (Nikita Sobolev, PR 11267)
+  - Make enum classess with values implicitly final (Nikita Sobolev, PR 11247)
+  - Make enum members implicitly final (Nikita Sobolev, PR 10852)
+  - Allow NamedTuple to be used as a type that accepts all named tuples, as an 
experimental extension (Nikita Sobolev, PR 11162)
+  - Allow booleans to be narrowed to literal types (Ethan Leba, PR 10389)
+  - Add slots=True support for @dataclass (Nikita Sobolev, PR 11483)
+  - Add slots=True support for @attr.s (Nikita Sobolev, PR 11489)
+  - Support the typing_extensions.OrderedDict alias (Nikita Sobolev, PR 11533)
+ - Usability and Documentation Improvements
+  - Add better NamedTuple error messages (Nikita Sobolev, PR 11127)
+  - Show all overloads in error message (Akuli, PR 9177)
+  - Fix error message for dataclasses.field with positional argument (Hiroshi 
Ogawa, PR 11180)
+  - Fix error message for f-string and str-bytes-safe (Nikita Sobolev, PR 
11139)
+  - Add documentation for type: ignore (Tushar Sadhwani, PR 11358)
+  - Support --exclude more than once on command line (Nipunn Koorapati, PR 
11329)
+  - Use list[int] instead of List[int] in documentation (PR 11377, PR 11450) 
(Nick Crews)
+  - Remove builtins. from error messages (97littleleaf11, PR 11522)
+  - Document explicit type aliases (Nikita Sobolev, PR 11800)
+  - Improve documentation of annotating generator functions (Alex Waygood, PR 
11623)
+  - Improve error message for nested TypedDict (97littleleaf11, PR 11658)
+  - Exit gracefully on KeyboardInterrupt (Marc Mueller, PR 10725)
+ - Optimizations: This release includes some optimizations that make mypy a 
bit faster (in addition to mypyc performance improvements discussed below):
+  - Enable --fast-exit by default to speed up mypy (Jukka Lehtosalo, PR 11541)
+  - Only read the stdlib versions dictionary once per run (Jukka Lehtosalo, PR 
11542)
+  - Optimize commonly used function (Jukka Lehtosalo, PR 11543)
+  - Minor optimization/cleanup (Jukka Lehtosalo, PR 11544)
+  - Reduce the number of executed local imports (Jukka Lehtosalo, PR 11545)
+ - Mypyc Fixes and Improvements
+  - Add missing type coercions (Jared Hance, PR 11176)
+  - Support --allow-redefinition (Jared Hance, PR 11175)
+  - Constant fold integer operations and string concatenation (Jukka 

commit mypy for openSUSE:Factory

2021-11-12 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mypy for openSUSE:Factory checked in 
at 2021-11-12 15:58:57

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.1890 (New)


Package is "mypy"

Fri Nov 12 15:58:57 2021 rev:23 rq:930546 version:0.910

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2021-03-05 
13:44:54.375602011 +0100
+++ /work/SRC/openSUSE:Factory/.mypy.new.1890/mypy.changes  2021-11-12 
15:58:59.462557421 +0100
@@ -1,0 +2,186 @@
+Tue Nov  2 19:49:00 UTC 2021 - Sebastian Wagner 
+
+- disable the tests to fix the build temporarily
+
+---
+Sat Jul 10 14:47:09 UTC 2021 - Sebastian Wagner 
+
+- Remove obsolete build (prep) instructions: typeshed has been removed from 
the archive.
+
+---
+Sun Jul  4 20:06:55 UTC 2021 - Sebastian Wagner 
+
+- update to version 0.910:
+  - Mypy 0.900 added --install-types to install missing stub packages. We 
received feedback that this wasn???t a good fit for all use cases, since it 
asks for interactive confirmation from the user, and it requires another mypy 
invocation to actually perform type checking.
+  - This release adds the new option --non-interactive that can be used with 
--install-types to install suggested stub packages without asking for 
confirmation. This can be useful in Continuous Integration jobs. The option 
causes mypy to both install stub packages and perform type checking within a 
single invocation. When not using --non-interactive, you???d have to run mypy 
again to get up-to-date results with the installed stubs.
+  - This option provides a new way to migrate existing mypy runner scripts 
after updating to mypy 0.9xx: just add the --install-types --non-interactive 
options to your mypy command line.
+  - Note that --install-types currently always installs the latest stubs for 
all supported packages. If you want reproducible results from your builds, we 
recommend explicitly pinning stub package versions in your requirements.txt 
file, for example.
+ - Python 3.5 Deprecation
+  - Running mypy on Python 3.5 is now deprecated. A future mypy release will 
drop Python 3.5 support. We haven???t decided when this will happen, but this 
might happen in the next feature release after 0.910.
+ - Stubgen Improvements
+  - Don't annotate unknown argument and return types (Sebastian Rittau, PR 
10626)
+ - Never generate a variable initializer (Sebastian Rittau, PR 10623)
+ - Use NamedTuple class syntax (Sebastian Rittau, PR 10625)
+ - Use T | None (PEP 604) instead of Optional[T] (Sebastian Rittau, PR 10624) 
+  - Other Fixes and Improvements
+  - Fix some crashes from faulty casts (Shantanu, PR 10560)
+ - Update docs for deferral of PEP 563 to 3.11 (Smart, PR 10655)
+ - Don't suggest to install stubs for packages with py.typed files (Sebastian 
Rittau, PR 10652)
+ - Correct the type package name of pyopenssl ( Sebastian Rittau, PR 10656)
+ - Improve error reporting when --install-types has no cache (PR 10667)
+ - Suggest types-setuptools for pkg_resources (Sebastian Rittau, PR 10681)
+ - Fix crash with assignment to variable guarded with TypeGuard (PR 10683)
+ - Don't ask to install a stub package if stubs are installed (PR 10670)
+ - Fix crash when inferring multiple assignment with overloaded function (PR 
10689) 
+- update to version 0.900:
+  - Third-party Library Stubs in Stub Packages (Breaking Change)
+  - Mypy now only ships with type stubs for stdlib modules (plus 
typing_extensions and mypy_extensions). If you use third-party libraries that 
don???t include stubs or inline type annotations, you can explicitly install 
stub packages, usually called types-.
+  - You can also now run mypy --install-types to install all missing stub 
packages in the mypy run (or the previous run, if you don???t pass any files to 
check).
+ - Using cached types_requests-0.1.8-py2.py3-none-any.whl (22 kB)
+  - For more information, read the blog post about this change and why we did 
this. There is more detail in the docs.
+ - Python 2 Support is Opt-in (Breaking Change)
+  - If you want to type check Python 2 code, you now have to install 
mypy[python2] using pip (on Python 3.8 and later):
+  - python3 -m pip install -U mypy[python2]
+  - This will install the additional typed-ast pip dependency that is required 
for Python 2 support. Type checking Python 2 code is still fully supported by 
mypy.
+  - TypeGuard
+  - Mypy now supports defining user-defined functions that perform type 
narrowing, similar to isinstance. Read PEP 647 for the details.
+  - Since TypeGuard will be included in Python 3.10, which hasn???t been 
released yet, you will have to import it from a 

commit mypy for openSUSE:Factory

2021-03-05 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mypy for openSUSE:Factory checked in 
at 2021-03-05 13:44:40

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.2378 (New)


Package is "mypy"

Fri Mar  5 13:44:40 2021 rev:22 rq:875607 version:0.812

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2021-02-01 
13:28:31.786133543 +0100
+++ /work/SRC/openSUSE:Factory/.mypy.new.2378/mypy.changes  2021-03-05 
13:44:54.375602011 +0100
@@ -1,0 +2,13 @@
+Sat Feb 20 11:05:11 UTC 2021 - Sebastian Wagner 
+
+- Update to version 0.812
+ - Improved Source File Finding
+  - Mypy 0.800 changed how mypy finds modules if you run mypy as mypy 
directory/ or mypy -p package. Mypy started looking for source files in 
directories without a __init__.py file. This is often the expected behavior, 
and it avoids excluding some files that should be type checked.
+However, this caused issues for some users, such as when using mypy . to 
type check all files under the current directory. Mypy could now try to type 
check files inside nested virtual environments and node_modules directories, 
which is usually not desirable. This could result in mypy needlessly 
complaining about duplicate module names, in particular.
+Now mypy will skip directories named site-packages or node_modules, and 
any directory beginning with a dot (such as .git) when recursively looking for 
files to check.
+This doesn???t affect how mypy resolves imports ??? it only affects when 
mypy is given a directory or a package to type check. You can override the 
exclusions by explicitly passing the files on the command line.
+ - Excluding Paths
+  - Mypy now supports the --exclude regex command line option to exclude paths 
matching a regular expression when searching for files to type check. For 
example, mypy --exclude '/setup\.py$' skips all setup.py files. This lets you 
exclude additional paths that mypy started finding after mypy 0.800 changed 
module finding behavior, as discussed above.
+  - You can also specify this in the config file (exclude=regex). The option 
expects forward slashes as directory separators on all platforms, including 
Windows, for consistency.
+
+---

Old:

  mypy-0.800.tar.gz

New:

  mypy-0.812.tar.gz



Other differences:
--
++ mypy.spec ++
--- /var/tmp/diff_new_pack.yP3fIw/_old  2021-03-05 13:44:55.799603306 +0100
+++ /var/tmp/diff_new_pack.yP3fIw/_new  2021-03-05 13:44:55.803603309 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   mypy
-Version:0.800
+Version:0.812
 Release:0
 Summary:Optional static typing for Python
 License:MIT

++ mypy-0.800.tar.gz -> mypy-0.812.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mypy-0.800/PKG-INFO new/mypy-0.812/PKG-INFO
--- old/mypy-0.800/PKG-INFO 2021-01-22 11:32:00.0 +0100
+++ new/mypy-0.812/PKG-INFO 2021-02-19 17:21:11.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: mypy
-Version: 0.800
+Version: 0.812
 Summary: Optional static typing for Python
 Home-page: http://www.mypy-lang.org/
 Author: Jukka Lehtosalo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mypy-0.800/docs/source/command_line.rst 
new/mypy-0.812/docs/source/command_line.rst
--- old/mypy-0.800/docs/source/command_line.rst 2021-01-22 11:31:33.0 
+0100
+++ new/mypy-0.812/docs/source/command_line.rst 2021-02-19 17:20:44.0 
+0100
@@ -49,6 +49,30 @@
 Asks mypy to type check the provided string as a program.
 
 
+.. option:: --exclude
+
+A regular expression that matches file names, directory names and paths
+which mypy should ignore while recursively discovering files to check.
+Use forward slashes on all platforms.
+
+For instance, to avoid discovering any files named `setup.py` you could
+pass ``--exclude '/setup\.py$'``. Similarly, you can ignore discovering
+directories with a given name by e.g. ``--exclude /build/`` or
+those matching a subpath with ``--exclude /project/vendor/``.
+
+Note that this flag only affects recursive discovery, that is, when mypy is
+discovering files within a directory tree or submodules of a package to
+check. If you pass a file or module explicitly it will still be checked. 
For
+instance, ``mypy --exclude '/setup.py$' but_still_check/setup.py``.
+
+Note that mypy will never recursively discover files and directories named
+"site-packages", 

commit mypy for openSUSE:Factory

2021-02-01 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mypy for openSUSE:Factory checked in 
at 2021-02-01 13:26:44

Comparing /work/SRC/openSUSE:Factory/mypy (Old)
 and  /work/SRC/openSUSE:Factory/.mypy.new.28504 (New)


Package is "mypy"

Mon Feb  1 13:26:44 2021 rev:21 rq:866688 version:0.800

Changes:

--- /work/SRC/openSUSE:Factory/mypy/mypy.changes2020-10-20 
16:12:15.794062434 +0200
+++ /work/SRC/openSUSE:Factory/.mypy.new.28504/mypy.changes 2021-02-01 
13:28:31.786133543 +0100
@@ -1,0 +2,89 @@
+Mon Jan 25 22:16:46 UTC 2021 - Benjamin Greiner 
+
+- Provide the toolname only for the primary python3 flavor in order
+  to avoid choice conflicts.
+- python3-mypy and python3Y-mypy are provided automatically.
+
+---
+Sat Jan 23 19:22:44 UTC 2021 - Sebastian Wagner 
+
+- Update to version 0.800:
+ - Python 3.9 Support
+ - Typing Usability Improvements (PEP 585 and PEP 604)
+   The necessity to repeatedly import various types and special forms from 
typing has been a long-term nuisance for users of static type checking and 
Python.
+   Two new Python features improve this situation and are now supported by 
mypy:
+   PEP 585 lets you use list[int] instead of List[int] (no need to import 
List and other generic collections from typing).
+   PEP 604 lets you write X | Y instead of Union[X, Y], and X | None 
instead of Optional[X] (no need to import Union or Optional from typing). 
+   Note: Using list[int] requires Python 3.9 and X | Y requires Python 3.10 
(alpha) in order to work at runtime. To use them on older versions of Python, 
use from __future__ import annotations. This allows them to be used in type 
annotations, but the older variants (or string literal escaping) may be 
required in non-annotation contexts, such as in type aliases. See the docs for 
more details.
+   Here is an example that uses the new features:
+   from __future__ import annotations
+   def fields(s: str | None) -> list[str]:
+   if not s:
+   return []
+   else:
+   return s.split(',')
+   These were implemented by Allan Daemon in PR 9564 and by Marc Mueller in PR 
9647.
+ - Improvements to Finding Modules
+   This release adds several improvements to how mypy finds Python source 
files to type check.
+   You can now pass paths to files within namespace packages on the command 
line, and mypy can better infer their module names. As before, use 
--namespace-packages to enable namespace packages.
+   When you use --explicit-package-bases together with --namespace-packages, 
mypy assumes that only the current directory and directories explicitly 
specified in MYPYPATH (or mypy_path in the config file) are valid package 
roots. This can help with situations where the module name of a file is 
ambiguous. For example, it may not be clear whether src/pkg/mod.py should be 
treated as src.pkg.mod or pkg.mod, and you can use this option to disambiguate 
between the two (more information in the docs).
+   The above improvements were implemented in PR 9742 by Shantanu.
+   Other related improvements (also implemented by Shantanu):
+  - When you run mypy as mypy , look for source files recursively 
also inside directories without a __init__.py (PR 9614)
+  - Support namespace packages with -p (PR 9683)
+  - Log encountered source files when running mypy with -v (PR 9672)
+  - Document the new module finding behavior (PR 9923) 
+ - Other Notable Improvements and Bug Fixes
+  - Only treat import X as X as a re-export in stubs (Shantanu, PR 9515)
+  - Fix package imports with aliases in stubgen (Chad Dombrova, PR 9534)
+  - Require first argument of namedtuple() to match the variable name (Momoko 
Hattori, PR 9577)
+  - Add error code for name mismatches in named tuples and TypedDicts to make 
it easy to disable these error messages (Jukka Lehtosalo, PR 9811)
+  - Document local_partial_types config option (Momoko Hattori, PR 9551)
+  - Improve ambiguous kwargs checking (Erik Soma, PR 9573)
+  - Disable unreachable warnings in boolean operators for type variables with 
value restrictions (Vincent Barbaresi, PR 9572)
+  - Allow assignment to an empty tuple (Tobin Yehle, PR 5617)
+  - Use absolute path when checking source duplication error (Yuki Igarashi, 
PR 9059)
+  - Add get_function_signature_hook() to the plugin API (Nikita Sobolev, PR 
9102)
+  - Speed up type checking of dictionary, set, and list expressions (Hugues, 
PR 9477)
+  - Allow non-types as arguments in Annotated (Patrick Arminio, PR 9625)
+  - Add support for next generation attrs API (David Euresti, PR 9396)
+  - Fix case folding of missing keys error message for TypedDicts (Marti 
Raudsepp, PR 9757)
+  - Fix generic inheritance of __init__() methods