15
0
forked from pool/python-mypy

- update to 1.8.0:

* https://mypy-lang.blogspot.com/2023/12/mypy-18-released.html
  * https://mypy-lang.blogspot.com/2023/11/mypy-17-released.html
  * https://mypy-lang.blogspot.com/2023/10/mypy-16-released.html
- fix dependencies
  - Support better __post_init__ method signature for dataclasses (Nikita Sobolev, PR 15503)
  - Don't explicitly assign NULL values in setup functions (Logan Hunt, PR 15379)
  - Fix crash on non-str docstring (Ali Hamdan, PR 15623)
  - Remove confusing instance variable example in cheat sheet (Adel Atallah, PR 15441)
  - Check for abstract class objects in tuples (Nikita Sobolev, PR 15366)
  - Fix frozen behavior for base classes with direct metaclasses (Wesley Collin Wright, PR 14878)
   - Fixes to float to int conversion (Jukka Lehtosalo, PR 14936)
  - Faster classmethod calls via cls (Jukka Lehtosalo, PR 14789)
  - Fix crash on ParamSpec in incremental mode (Ivan Levkivskyi, PR 14885)
  - Improve documentation of top level mypy: disable-error-code comment (Nikita Sobolev, PR 14810)
  - Add suggestions for pandas-stubs and lxml-stubs (Shantanu, PR 14737)
  - Honor NoReturn as __setitem__ return type to mark unreachable code (sterliakov, PR 12572)
- Sadly, six is still required for tests, re-add to BuildRequires.
  The full release notes can be found here:
  - Fix types of inherited attributes in generic dataclasses (Jukka Lehtosalo, PR 12656)
- add missing g++ compiler for tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=6
This commit is contained in:
2024-01-02 17:27:14 +00:00
committed by Git OBS Bridge
parent 1c58745afc
commit bfba238f1d
4 changed files with 33 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-mypy
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,12 +18,11 @@
%{?sle15_python_module_pythons}
%bcond_without test
%define skip_python2 1
%define typed_ast_version 1.5.8.7
%define types_psutil_version 5.9.5.16
%define types_setuptools_version 68.1.0.0
Name: python-mypy
Version: 1.5.1
Version: 1.8.0
Release: 0
Summary: Optional static typing for Python
License: MIT
@@ -46,8 +45,8 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-mypy_extensions >= 0.4.3
Requires: python-typing_extensions >= 3.10
Requires: (python-tomli >= 1.1.0 if python3-base < 3.11)
Requires: (python-typed-ast >= 1.4.0 if python3-base < 3.8)
Requires: (python-tomli >= 1.1.0 if python-base < 3.11)
Requires: (python-typed-ast >= 1.4.0 if python-base < 3.8)
Requires(post): update-alternatives
Requires(postun):update-alternatives
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"