14
0
forked from pool/python-mypy

Commit Graph

  • e15bc6eb59 - Fix the libalternatives condition main Markéta Machová 2025-08-12 13:00:05 +00:00
  • c288594e5b Accepting request 1295535 from home:mcalabkova:branches:devel:languages:python Matej Cepl 2025-07-28 13:20:04 +00:00
  • ec731f90ca - Update to 1.17.0: - Optionally Check That Match Is Exhaustive Mypy can now optionally generate an error if a match statement does not match exhaustively, without having to use assert_never(...). Enable this by using --enable-error-code exhaustive-match. - Further Improvements to Attribute Resolution This release includes additional improvements to how attribute types and kinds are resolved. These fix many bugs and overall improve consistency. - Fixes to Nondeterministic Type Checking Previous mypy versions could infer different types for certain expressions across different runs (typically depending on which order certain types were processed, and this order was nondeterministic). This release includes fixes to several such issues. - Remove Support for Targeting Python 3.8 Mypy now requires --python-version 3.9 or greater. Support for targeting Python 3.8 is fully removed now. Since 3.8 is an unsupported version, mypy will default to the oldest supported version (currently 3.9) if you still try to target 3.8. - Initial Support for Python 3.14 Mypy is now tested on 3.14 and mypyc works with 3.14.0b3 and later. Binary wheels compiled with mypyc for mypy itself will be available for 3.14 some time after 3.14.0rc1 has been released. - Deprecated Flag: --force-uppercase-builtins Mypy only supports Python 3.9+. The --force-uppercase-builtins flag is now deprecated as Matej Cepl 2025-07-16 10:53:00 +00:00
  • 9ae2d73e9d - Convert to libalternatives Markéta Machová 2025-07-08 08:37:30 +00:00
  • 5f20ab2c07 Accepting request 1281380 from home:mcalabkova:branches:devel:languages:python Markéta Machová 2025-05-30 11:16:46 +00:00
  • 64eda3387b Add missing BR Matej Cepl 2025-05-29 15:34:38 +00:00
  • 593e67b14f - Remove upstreamed mypy-1.14.1-gcc15.patch - Update to 1.16.0: Different Property Getter and Setter Types Mypy now supports using different types for a property getter and setter: class A: _value: int @property def foo(self) -> int: return self._value @foo.setter def foo(self, x: str | int) -> None: try: self._value = int(x) except ValueError: raise Exception(f"'{x}' is not a valid value for 'foo'") This was contributed by Ivan Levkivskyi (PR 18510). Flexible Variable Redefinitions (Experimental) Mypy now allows unannotated variables to be freely redefined with different types when using the experimental --allow-redefinition-new flag. You will also need to enable --local-partial-types. Mypy will now infer a union type when different types are assigned to a variable: # mypy: allow-redefinition-new, local-partial-types def f(n: int, b: bool) -> int | str: if b: x = n else: x = str(n) # Type of 'x' is int | str here. return x Matej Cepl 2025-05-29 15:32:58 +00:00
  • 3c949c1f52 - Add mypy-1.14.1-gcc15.patch from upstream to fix gcc15 compile time error Matej Cepl 2025-05-05 14:10:47 +00:00
  • ce32e3b235 - Update vendored types_* to the appropriate versions. Matej Cepl 2025-05-05 12:59:34 +00:00
  • ac6233e7d9 Accepting request 1240190 from home:ecsos:python Matej Cepl 2025-01-25 20:45:00 +00:00
  • 7665d97fa3 - Remove _service* files. Matej Cepl 2024-10-14 13:09:43 +00:00
  • d0701763ee - Update types-psutil 6.0.0.20241011, and types-setuptools to 75.1.0.20241014 (just for testing, these are not openSUSE packages of these tools). Matej Cepl 2024-10-14 13:07:55 +00:00
  • e4cd512851 - Update to officially released version 1.12.0: - Support Python 3.12 Syntax for Generics (PEP 695) - Related improvements are included: - Document Python 3.12 type parameter syntax (Jukka Lehtosalo, PR 17816) - Further documentation updates (Jukka Lehtosalo, PR 17826) - Allow Self return types with contravariance (Jukka Lehtosalo, PR 17786) - Enable new type parameter syntax by default (Jukka Lehtosalo, PR 17798) - Generate error if new-style type alias used as base class (Jukka Lehtosalo, PR 17789) - Inherit variance if base class has explicit variance (Jukka Lehtosalo, PR 17787) - Fix crash on invalid type var reference (Jukka Lehtosalo, PR 17788) - Fix covariance of frozen dataclasses (Jukka Lehtosalo, PR 17783) - Allow covariance with attribute that has "_" name prefix (Jukka Lehtosalo, PR 17782) - Support Annotated[...] in new-style type aliases (Jukka Lehtosalo, PR 17777) - Fix nested generic classes (Jukka Lehtosalo, PR 17776) - Add detection and error reporting for the use of incorrect expressions within the scope of a type parameter and a type alias (Kirill Podoprigora, PR 17560) - Basic Support for Python 3.13 This release adds partial support for Python 3.13 features and compiled binaries for Python 3.13. Mypyc now also supports Python 3.13. - Various new stdlib features and changes (through typeshed Matej Cepl 2024-10-14 13:04:21 +00:00
  • 936977352f - Temporarily switched to using git source before the problems with 3.13.0 compatibility are fixed. - Update to version 1.11.2+git.1728499967.eca206d: * Fix union callees with functools.partial (#17903) * [mypyc] Add "runtests.py mypyc-fast" for running fast mypyc tests (#17906) * Emit error for "raise NotImplemented" (#17890) * Document ReadOnly (PEP 705) (#17905) * Make ReadOnly TypedDict items covariant (#17904) * documentation for TypeIs (#17821) * Improvements to functools.partial of types (#17898) * Use 3.13.0 for ci tests (#17900) * stubtest: Stop telling people to use double underscores (#17897) * Add changelog for mypy 1.12 (#17889) - Remove upstreamed latest-pythons.patch Matej Cepl 2024-10-10 12:17:41 +00:00
  • 97ab06fd88 Accepting request 1205721 from home:mcalabkova:branches:devel:languages:python Matej Cepl 2024-10-04 22:29:10 +00:00
  • d2a4a19132 Accepting request 1199903 from home:glaubitz:branches:devel:languages:python Markéta Machová 2024-09-11 06:59:56 +00:00
  • fdbdf4306b - Update to 1.10.0: * Support TypeIs (PEP 742) * Support TypeVar Defaults (PEP 696) * Support TypeAliasType (PEP 695) * Detect Additional Unsafe Uses of super() * Fix incorrect inferred type when accessing descriptor on union type * Fix crash when expanding invalid Unpack in a Callable alias * Fix false positive when string formatting with string enum * Narrow individual items when matching a tuple to a sequence pattern * Fix false positive from type variable within TypeGuard or TypeIs * Improve yield from inference for unions of generators * Fix emulating hash method logic in attrs classes * Add reverted typeshed commit that uses ParamSpec for functools.wraps * Fix type narrowing for types.EllipsisType * Fix single item enum match type exhaustion * Improve type inference with empty collections * Fix override checking for decorated property * Fix narrowing on match with function subject - Drop including types-ast, no longer required. - Drop patch workaround-parenthesized-context-managers.patch, now included upstream. Steve Kowalik 2024-06-17 05:39:18 +00:00
  • 3a9202cca5 - Stop skipping tests under Python 3.6. - Drop -x argument to pytest. Steve Kowalik 2024-04-04 08:33:29 +00:00
  • 682c3bbd77 - Add patch workaround-parenthesized-context-managers.patch: * Work around parenthesized context managers issue. - Stop skipping tests that are now fixed. Steve Kowalik 2024-04-04 04:59:52 +00:00
  • ca87b07efe Accepting request 1162950 from home:ecsos:python Markéta Machová 2024-03-28 08:08:12 +00:00
  • 00f4a5eaaa - Clean up SPEC file. Matej Cepl 2024-03-22 14:16:08 +00:00
  • bd53269d4a Accepting request 1159070 from home:dancermak:branches:devel:languages:python Matej Cepl 2024-03-22 13:47:03 +00:00
  • 94c5841f63 - 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 Dirk Mueller 2024-01-02 17:27:14 +00:00
  • 245dcc82d9 Adjust rpmlintrc. Matej Cepl 2023-09-01 22:14:38 +00:00
  • f7e6c51026 Accepting request 1108336 from home:mschreiner:branches:devel:languages:python Matej Cepl 2023-09-01 17:05:19 +00:00
  • 0bd898b456 Accepting request 1085541 from home:ojkastl_buildservice:Branch_devel_languages_python Dirk Mueller 2023-05-08 15:30:06 +00:00
  • a7b9f0ea27 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mypy?expand=0&rev=1 Steve Kowalik 2022-11-28 04:04:00 +00:00