From c7b00f8287e33c88d8ef0f285e420517b2962764 Mon Sep 17 00:00:00 2001 From: James Parrott <80779630+JamesParrott@users.noreply.github.com> Date: Wed, 17 Jun 2026 12:05:22 +0100 Subject: [PATCH] Annotate ReasonCode.names to MappingProxyType | dict Annotate ReasonCode.names to MappingProxyType | dict --- src/paho/mqtt/reasoncodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/paho/mqtt/reasoncodes.py b/src/paho/mqtt/reasoncodes.py index f4aae792..b48d57af 100644 --- a/src/paho/mqtt/reasoncodes.py +++ b/src/paho/mqtt/reasoncodes.py @@ -13,6 +13,7 @@ # Contributors: # Ian Craggs - initial implementation and/or documentation # ******************************************************************* +from __future__ import annotations import functools import warnings @@ -31,7 +32,7 @@ class ReasonCode: """ - names = MappingProxyType( + names: MappingProxyType | dict = MappingProxyType( { 0: { "Success": [