Thursday, 2025-12-04

zigoopenstacksdk fails with Python 3.14, it seems: https://buildd.debian.org/status/fetch.php?pkg=python-openstacksdk&arch=all&ver=4.7.2-1&stamp=1764789128&raw=014:35
stephenfinzigo: that looks like a bug14:40
stephenfinin scoping14:40
zigostephenfin: Can you expand on this? :)14:41
stephenfinI'll try work on a minimal reproducer, but it seems to be associating 'list' with the class method defined on the class instead of the list primitive14:43
stephenfinthat's a change in scoping behavior fwict14:43
zigoNew behavior in python 3.14, you mean?14:43
stephenfinyes14:44
zigo(you must know it but... ) you can just pop a Debian Unstable if you want 3.14.14:44
stephenfinAll good: I've got it in F4314:45
zigoLet me know your findings, thanks for taking care of it.14:54
stephenfinzigo: https://github.com/stephenfin/python-314-scoping-reproducer14:55
stephenfinthere's a minimal reproducer14:55
stephenfinthere's a chance this is an intentional change but I don't see anything in https://docs.python.org/3/whatsnew/3.14.html14:56
stephenfinin any case, the solution will likely be to replace `list[...]` annotations with `builtins.list` in that file14:57
zigostephenfin: 15:49
zigo  File "/build/python-openstacksdk-RCihkI/python-openstacksdk-4.7.2/openstack/resource.py", line 1117, in __annotate__15:49
zigo    ) -> dict[str, ty.Any] | builtins.list[ty.Any]:15:49
zigo                             ^^^^^^^^15:49
zigoNameError: name 'builtins' is not defined. Did you forget to import 'builtins'?15:49
zigoI can just get rid of the annotation, no ?15:50
opendevreviewMiro Tomaska proposed openstack/python-openstackclient master: Use openstacksdk test generate_fake_resources factory  https://review.opendev.org/c/openstack/python-openstackclient/+/96635416:27
stephenfinzigo: we want to be adding annotations, not removing them. you need to import builtins, yes17:02
opendevreviewCyril Roelandt proposed openstack/openstacksdk master: image: Add support for downloading from a specific store  https://review.opendev.org/c/openstack/openstacksdk/+/96983919:17
opendevreviewStephen Finucane proposed openstack/python-openstackclient master: Implement conflict resolution  https://review.opendev.org/c/openstack/python-openstackclient/+/96817819:30
opendevreviewStephen Finucane proposed openstack/python-openstackclient master: Implement conflict resolution  https://review.opendev.org/c/openstack/python-openstackclient/+/96817819:30
opendevreviewAustin Jamias proposed openstack/ansible-collections-openstack master: Add ability to allocate floating IP  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/96984820:20

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!