openstack/neutron-lib · Week of 2026-12-05

openstack/neutron-lib — 2026-12-05

13 merges · 5 contributors · 1209 lines changed

Type annotations sweep. The bulk of the week — roughly 850 lines of churn — was a coordinated push to add type hints across the library's core modules. Annotations landed in neutron_lib.api.validators, neutron_lib.objects, neutron_lib.fixtures, neutron_lib.context, neutron_lib.exceptions, and neutron_lib.policy. Alongside the annotations, a follow-up turned on the mypy checks that already pass, locking in the newly-typed surface, and a small ruff.format configuration was added to the repo.

API and runtime fixes. A validator fix wraps single format arguments in tuples to correct string-formatting behavior, and timecost now passes min_duration=0 to time_it. The oslo_service threading backend is now initialized explicitly, aligning the library with the broader move toward configurable threading models.

Constants and CI. A new OVS DOCA datapath type constant was added for consumers that need to identify DOCA-backed bridges. On the CI side, the stable 2026.2 branch was switched over to the matching neutron-tempest-plugin jobs.