File: py3.14_fix-annotations.patch

package info (click to toggle)
python-openstacksdk 4.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 13,904 kB
  • sloc: python: 127,036; sh: 153; makefile: 23
file content (35 lines) | stat: -rw-r--r-- 1,157 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: py3.14: fix annotations
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2025-12-05

Index: python-openstacksdk/openstack/resource.py
===================================================================
--- python-openstacksdk.orig/openstack/resource.py
+++ python-openstacksdk/openstack/resource.py
@@ -32,6 +32,7 @@ converted into this Resource class' appr
 and then returned to the caller.
 """
 
+import builtins
 import collections
 import collections.abc
 import inspect
@@ -1114,7 +1115,7 @@ class Resource(dict):
         prepend_key: bool,
         *,
         resource_request_key: str | None = None,
-    ) -> dict[str, ty.Any] | list[ty.Any]:
+    ) -> dict[str, ty.Any] | builtins.list[ty.Any]:
         body: dict[str, ty.Any] | list[ty.Any]
         if patch:
             if not self._store_unknown_attrs_as_properties:
@@ -1478,7 +1479,7 @@ class Resource(dict):
     def bulk_create(
         cls,
         session: adapter.Adapter,
-        data: list[dict[str, ty.Any]],
+        data: builtins.list[dict[str, ty.Any]],
         prepend_key: bool = True,
         base_path: str | None = None,
         *,