Skip to content

Commit 73d2cae

Browse files
authored
Merge pull request #924 from JamesParrott/Fix_mypy_error_in_workflow
Annotate ReasonCode.names to MappingProxyType | dict
2 parents 7a3d161 + c7b00f8 commit 73d2cae

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/paho/mqtt/reasoncodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# Contributors:
1414
# Ian Craggs - initial implementation and/or documentation
1515
# *******************************************************************
16+
from __future__ import annotations
1617

1718
import functools
1819
import warnings
@@ -31,7 +32,7 @@ class ReasonCode:
3132
3233
"""
3334

34-
names = MappingProxyType(
35+
names: MappingProxyType | dict = MappingProxyType(
3536
{
3637
0: {
3738
"Success": [

0 commit comments

Comments
 (0)