Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-dataclasses-json for 
openSUSE:Factory checked in at 2026-08-12 16:11:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dataclasses-json (Old)
 and      /work/SRC/openSUSE:Factory/.python-dataclasses-json.new.17972 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dataclasses-json"

Wed Aug 12 16:11:43 2026 rev:7 rq:1370746 version:0.6.7

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-dataclasses-json/python-dataclasses-json.changes
  2026-06-02 19:54:34.311224540 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-dataclasses-json.new.17972/python-dataclasses-json.changes
       2026-08-12 16:12:42.334973997 +0200
@@ -1,0 +2,6 @@
+Wed Aug 12 02:23:30 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-dataclasses-missing-type.patch:
+  * Do not use internals to check if fields are undefined.
+
+-------------------------------------------------------------------

New:
----
  no-dataclasses-missing-type.patch

----------(New B)----------
  New:
- Add patch no-dataclasses-missing-type.patch:
  * Do not use internals to check if fields are undefined.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-dataclasses-json.spec ++++++
--- /var/tmp/diff_new_pack.UFMLN3/_old  2026-08-12 16:12:43.079005425 +0200
+++ /var/tmp/diff_new_pack.UFMLN3/_new  2026-08-12 16:12:43.083005594 +0200
@@ -30,6 +30,8 @@
 Patch1:         support-python314.patch
 # PATCH-FIX-UPSTREAM gh#lidatong/dataclasses-json#577
 Patch2:         support-marshmallow-4.patch
+# PATCH-FIX-UPSTREAM gh#lidatong/dataclasses-json#578
+Patch3:         no-dataclasses-missing-type.patch
 BuildRequires:  %{python_module hypothesis}
 BuildRequires:  %{python_module marshmallow}
 BuildRequires:  %{python_module mypy}

++++++ no-dataclasses-missing-type.patch ++++++
>From 89d2659a1b2e2eceabedcfac32fce6f22c8ad609 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Wed, 12 Aug 2026 12:21:30 +1000
Subject: [PATCH] Do not use dataclasses._MISSING_TYPE

dataclasses._MISSING_TYPE was always an internal implemenation detail of
how undefined fields were kept track of, dataclasses.MISSING is the
correct way to check, and as a bonus, doesn't break with Python 3.15.
---
 dataclasses_json/undefined.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dataclasses_json/undefined.py b/dataclasses_json/undefined.py
index cb8b2cfc..e8f4a5b2 100644
--- a/dataclasses_json/undefined.py
+++ b/dataclasses_json/undefined.py
@@ -174,12 +174,12 @@ def _get_default(catch_all_field: Field) -> Any:
         # https://github.com/python/mypy/issues/6910
 
         # noinspection PyProtectedMember
-        has_default = not isinstance(catch_all_field.default,
-                                     dataclasses._MISSING_TYPE)
+        has_default = catch_all_field.default is not dataclasses.MISSING
         # noinspection PyProtectedMember
-        has_default_factory = not isinstance(catch_all_field.default_factory,
-                                             # type: ignore
-                                             dataclasses._MISSING_TYPE)
+        has_default_factory = (
+            catch_all_field.default_factory
+            is not dataclasses.MISSING
+        )
         # TODO: black this for proper formatting
         default_value: Union[
             Type[_CatchAllUndefinedParameters._SentinelNoDefault], Any] = 
_CatchAllUndefinedParameters\

Reply via email to