| zigo | openstacksdk 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=0 | 14:35 |
|---|---|---|
| stephenfin | zigo: that looks like a bug | 14:40 |
| stephenfin | in scoping | 14:40 |
| zigo | stephenfin: Can you expand on this? :) | 14:41 |
| stephenfin | I'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 primitive | 14:43 |
| stephenfin | that's a change in scoping behavior fwict | 14:43 |
| zigo | New behavior in python 3.14, you mean? | 14:43 |
| stephenfin | yes | 14:44 |
| zigo | (you must know it but... ) you can just pop a Debian Unstable if you want 3.14. | 14:44 |
| stephenfin | All good: I've got it in F43 | 14:45 |
| zigo | Let me know your findings, thanks for taking care of it. | 14:54 |
| stephenfin | zigo: https://github.com/stephenfin/python-314-scoping-reproducer | 14:55 |
| stephenfin | there's a minimal reproducer | 14:55 |
| stephenfin | there's a chance this is an intentional change but I don't see anything in https://docs.python.org/3/whatsnew/3.14.html | 14:56 |
| stephenfin | in any case, the solution will likely be to replace `list[...]` annotations with `builtins.list` in that file | 14:57 |
| zigo | stephenfin: | 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 |
| zigo | NameError: name 'builtins' is not defined. Did you forget to import 'builtins'? | 15:49 |
| zigo | I can just get rid of the annotation, no ? | 15:50 |
| opendevreview | Miro Tomaska proposed openstack/python-openstackclient master: Use openstacksdk test generate_fake_resources factory https://review.opendev.org/c/openstack/python-openstackclient/+/966354 | 16:27 |
| stephenfin | zigo: we want to be adding annotations, not removing them. you need to import builtins, yes | 17:02 |
| opendevreview | Cyril Roelandt proposed openstack/openstacksdk master: image: Add support for downloading from a specific store https://review.opendev.org/c/openstack/openstacksdk/+/969839 | 19:17 |
| opendevreview | Stephen Finucane proposed openstack/python-openstackclient master: Implement conflict resolution https://review.opendev.org/c/openstack/python-openstackclient/+/968178 | 19:30 |
| opendevreview | Stephen Finucane proposed openstack/python-openstackclient master: Implement conflict resolution https://review.opendev.org/c/openstack/python-openstackclient/+/968178 | 19:30 |
| opendevreview | Austin Jamias proposed openstack/ansible-collections-openstack master: Add ability to allocate floating IP https://review.opendev.org/c/openstack/ansible-collections-openstack/+/969848 | 20:20 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!