Your message dated Sat, 14 Nov 2026 19:05:50 +0000
with message-id <[email protected]>
and subject line Bug#1148799: fixed in strawberry-graphql 0.320.0-3
has caused the Debian Bug report #1148799,
regarding strawberry-graphql: FTBFS against python 3.15rc2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1148799: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1148799
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:strawberry-graphql
Version: 0.320.0-2
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2 version 
we found that strawberry-graphql fails to build from source [1].

The error is:
E   AttributeError: module 'dataclasses' has no attribute '_is_type'

To fix it I had to backport upstream commit a0ce7fc "Add Python 3.15 test coverage 
(#4565)" [2].

I've applied the upstream fix in the sandbox [3] to verify that it builds 
successfully, please consider applying the patch to support the upcoming 3.15 
version.

Setting the severity to important for now. Once Python 3.15 is released, it 
will be added to python3-defaults and this bug will become release critical.

Happy hacking,

[1]: 
https://debusine.debian.net/debian/r-python-python3.15/work-request/1313032/
[2]: 
https://github.com/strawberry-graphql/strawberry/commit/a0ce7fce5f968043812dabdaa4ad99fedfc70086
[3]: https://debusine.debian.net/debian/r-python-python3.15/

--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
From: Patrick Arminio <[email protected]>
Date: Fri, 28 Aug 2026 20:21:19 +0200
Subject: Add Python 3.15 test coverage (#4565)

* Add Python 3.15 test coverage

* Install Python 3.15 build dependencies

* Complete Python 3.15 build toolchain

* Skip codeflash on Python 3.15

* Avoid private dataclasses APIs

* Preserve ClassVar detection across Python versions

---------

Co-authored-by: Amp <[email protected]>
---
 strawberry/utils/typing.py              | 33 ++++++++++++++++++++-------------
 tests/relay/test_types.py               | 13 +++++++++++++
 tests/utils/test_typing_forward_refs.py | 11 +++++++++++
 3 files changed, 44 insertions(+), 13 deletions(-)

diff --git a/strawberry/utils/typing.py b/strawberry/utils/typing.py
index a5e2886..a0c02c0 100644
--- a/strawberry/utils/typing.py
+++ b/strawberry/utils/typing.py
@@ -1,5 +1,5 @@
 import ast
-import dataclasses
+import re
 import sys
 import typing
 from collections.abc import AsyncGenerator
@@ -22,6 +22,8 @@ from typing import (  # type: ignore
     get_origin,
 )
 
+_CLASSVAR_RE = re.compile(r"^\s*(\w+(?:\s*\.\s*\w+)*)")
+
 
 @lru_cache
 def get_generic_alias(type_: type) -> type:
@@ -144,24 +146,29 @@ def is_type_var(annotation: type) -> bool:
     return isinstance(annotation, TypeVar)
 
 
-def is_classvar(cls: type, annotation: ForwardRef | str) -> bool:
+def is_classvar(cls: type, annotation: object) -> bool:
     """Returns True if the annotation is a ClassVar."""
-    # This code was copied from the dataclassses cpython implementation to check
-    # if a field is annotated with ClassVar or not, taking future annotations
-    # in consideration.
-    if dataclasses._is_classvar(annotation, typing):  # type: ignore
+    if annotation is ClassVar or get_origin(annotation) is ClassVar:
         return True
 
     annotation_str = (
         annotation.__forward_arg__ if isinstance(annotation, ForwardRef) else annotation
     )
-    return isinstance(annotation_str, str) and dataclasses._is_type(  # type: ignore
-        annotation_str,
-        cls,
-        typing,
-        typing.ClassVar,
-        dataclasses._is_classvar,  # type: ignore
-    )
+    module = sys.modules.get(cls.__module__)
+    if not isinstance(annotation_str, str) or module is None:
+        return False
+
+    match = _CLASSVAR_RE.match(annotation_str)
+    if match is None:
+        return False
+
+    resolved: object | None = module
+    for path_item in match.group(1).split("."):
+        resolved = getattr(resolved, path_item.strip(), None)
+        if resolved is None:
+            return False
+
+    return resolved is ClassVar or get_origin(resolved) is ClassVar
 
 
 def type_has_annotation(type_: object, annotation: type) -> bool:
diff --git a/tests/relay/test_types.py b/tests/relay/test_types.py
index c445cf0..aa329f2 100644
--- a/tests/relay/test_types.py
+++ b/tests/relay/test_types.py
@@ -1,3 +1,4 @@
+import typing_extensions
 from collections.abc import AsyncGenerator, AsyncIterable
 from typing import Any, Optional, Union, cast
 from typing_extensions import assert_type
@@ -259,6 +260,18 @@ def test_overwrite_resolve_id_and_no_node_id():
     strawberry.Schema(query=Query)
 
 
+def test_resolve_id_attr_ignores_qualified_classvar():
+    @strawberry.type
+    class Fruit(relay.Node):
+        id: relay.NodeID[int]
+
+    Fruit.__annotations__["registry"] = (
+        f"{typing_extensions.__name__}.ClassVar[MissingType]"
+    )
+
+    assert Fruit.resolve_id_attr() == "id"
+
+
 def test_list_connection_without_edges_or_page_info(mocker: MagicMock):
     @strawberry.type(name="Connection", description="A connection to a list of items.")
     class DummyListConnectionWithTotalCount(relay.ListConnection[relay.NodeType]):
diff --git a/tests/utils/test_typing_forward_refs.py b/tests/utils/test_typing_forward_refs.py
index 7b8bb51..41f5e56 100644
--- a/tests/utils/test_typing_forward_refs.py
+++ b/tests/utils/test_typing_forward_refs.py
@@ -1,11 +1,17 @@
 from __future__ import annotations
 
 import typing
+import typing_extensions
+from types import SimpleNamespace
 from typing import ClassVar, ForwardRef, Optional, Union
 
 from strawberry.scalars import JSON
 from strawberry.utils.typing import eval_type, is_classvar
 
+_classvar_proxy = SimpleNamespace(
+    nested=SimpleNamespace(ClassVar=ClassVar),
+)
+
 
 def test_eval_type():
     class Foo: ...
@@ -51,7 +57,12 @@ def test_is_classvar():
         attr1: str
         attr2: ClassVar[str]
         attr3: typing.ClassVar[str]
+        attr4: typing_extensions.ClassVar[str]
+
+    Foo.__annotations__["attr5"] = "_classvar_proxy.nested.ClassVar[str]"
 
     assert not is_classvar(Foo, Foo.__annotations__["attr1"])
     assert is_classvar(Foo, Foo.__annotations__["attr2"])
     assert is_classvar(Foo, Foo.__annotations__["attr3"])
+    assert is_classvar(Foo, Foo.__annotations__["attr4"])
+    assert is_classvar(Foo, Foo.__annotations__["attr5"])

--- End Message ---
--- Begin Message ---
Source: strawberry-graphql
Source-Version: 0.320.0-3
Done: Nico Della Torre <[email protected]>

We believe that the bug you reported is fixed in the latest version of
strawberry-graphql, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nico Della Torre <[email protected]> (supplier of updated strawberry-graphql 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 13 Nov 2026 21:29:11 +0100
Source: strawberry-graphql
Architecture: source
Version: 0.320.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Nico Della Torre <[email protected]>
Closes: 1148799
Changes:
 strawberry-graphql (0.320.0-3) unstable; urgency=medium
 .
   * Team upload.
   * [02b1c4f] Backport upstream fix for Python 3.15 (Closes: #1148799)
Checksums-Sha1:
 8b976eb1815edd837c810523a12e03621de64259 3778 strawberry-graphql_0.320.0-3.dsc
 e4e2a49ba7d6ef601148fcd6afe7a7c42a6586a1 1393752 
strawberry-graphql_0.320.0-3.debian.tar.xz
 d0a5ea2c745c1ae1e73c980cdb4c25a46e0bce60 12680 
strawberry-graphql_0.320.0-3_source.buildinfo
Checksums-Sha256:
 eea54590bcd9fd1c5b5432e22852f808415ff456b6e7f79dd328f779487c3bc0 3778 
strawberry-graphql_0.320.0-3.dsc
 c9fbe0353f1db47dcc3555b76c9da6c45e8fd1484463bc83c671cce0851485a4 1393752 
strawberry-graphql_0.320.0-3.debian.tar.xz
 45a1d37b65fbb16ff024afd4bcdc40bc3c85e7061943158dd60c3d91fce39870 12680 
strawberry-graphql_0.320.0-3_source.buildinfo
Files:
 e69e41a77671bd06ff9064fd007364d1 3778 python optional 
strawberry-graphql_0.320.0-3.dsc
 3edc2b6977357f87c912fce8d45823fc 1393752 python optional 
strawberry-graphql_0.320.0-3.debian.tar.xz
 ca011a445fbf8eb5dace791f80d30364 12680 python optional 
strawberry-graphql_0.320.0-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmr4q/wACgkQMfMURUSh
dBopgRAAlJPTU7CX3uRHN6KNO5Q/+ZUnrspFgEOE3xashxwdEyfXBOdYeVT4wjSA
TDk3cIooLdR0+jYJYvJJSTFCnZhBHy0ibsL2IlcMIqDAOgqvh/S+KjSFj1tNDR48
8ujOV18/2TJBY0DKKd0qUZu4kFmjLdM3lkG6g2TRLEKh5hlfbWoyQ3GVD4Ua6MQB
EWJ4P7Zw7xBPDMByv5oszu0MS5FlgCK6flCMkxtZSwRqRrjAOlP763i0+B57Q6zm
JUZQvxKZHd52+I8mG/W0Yk8pkBMwnQRcaWSh8NBHCTFo3z9cOrDkSrwhDVOfPRPt
koKlhoMQxiGIy/YHPsLrJepQ0QUekoHnh49/RhPsrlFTNi6fB2LCzTG9Y5krbi5j
56Sj6Ic7ozhvlQXWetDvJznoMdD9ilJVBjPdK6u6UaNhFHA4IFqELqfsM0fBpnXS
7r4Y4G07mTIucnyqwSrR5FJZ+k4W0Ct5YJ2iSRuYSPWr7bA8yWBISf0Cvp9C/3Fo
mkMipcNATnjMCYtm4oNsuKT50lIEw14VXFUjmAshsfk2obU0LLkwEJ5l/qlGhCG3
Uk7c0W+AQ3xV+gZMiJpPazBdkJYEBAyzNFkLavW7yqT9TX00JdEml3G/Ec4uNYRo
4Jwj3k8hDERGfsEsEwnVwm8aqdRrppKV+Xw9BMu/WjbHK7Hbjwg=
=/tAw
-----END PGP SIGNATURE-----

Attachment: pgpse_jSHBNNU.pgp
Description: PGP signature


--- End Message ---

Reply via email to