Hervé Beraud 125f958d9d typing: Add type annotations for testscenarios in StringToBytesTest
The StringToBytesTest class uses testscenarios.multiply_scenarios() to
dynamically inject test attributes (sign, magnitude, unit_prefix, etc.)
at runtime. Mypy cannot infer these dynamically-generated attributes,
resulting in 19 "has no attribute" errors during type checking.

This change adds explicit type annotations for the scenarios class
attribute and all instance attributes that get injected by the
testscenarios framework, allowing mypy to properly validate the test
code without errors.

Assisted-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Change-Id: Ice60c7f944bea3fdce4284cc2f0881f40996cf8f
Signed-off-by: Hervé Beraud <herveberaud.pro@gmail.com>
2026-04-08 15:19:46 +02:00
2025-09-11 17:55:42 +01:00
2025-09-11 17:55:42 +01:00
2019-04-19 19:27:54 +00:00
2025-12-04 18:18:35 +00:00
2018-07-04 08:28:15 +07:00
2024-07-23 23:23:55 +09:00
2024-11-09 15:21:27 +09:00
2019-02-13 14:28:34 +08:00
2025-11-21 22:10:20 +09:00
2025-09-11 17:55:42 +01:00
2025-12-11 12:46:17 +00:00

oslo.utils

image

Latest Version

Downloads

The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.

Description
OpenStack library utils
Readme 8.9 MiB
Languages
Python 100%