Skip to content

Annotate ReasonCode.names to MappingProxyType | dict#924

Open
JamesParrott wants to merge 1 commit into
eclipse-paho:masterfrom
JamesParrott:Fix_mypy_error_in_workflow
Open

Annotate ReasonCode.names to MappingProxyType | dict#924
JamesParrott wants to merge 1 commit into
eclipse-paho:masterfrom
JamesParrott:Fix_mypy_error_in_workflow

Conversation

@JamesParrott

Copy link
Copy Markdown
Contributor

Annotate ReasonCode.names to MappingProxyType | dict

Annotate ReasonCode.names to MappingProxyType | dict
@JamesParrott

Copy link
Copy Markdown
Contributor Author

Fixes lint error in Master from mypy: https://github.com/eclipse-paho/paho.mqtt.python/actions/runs/27639807456/job/81736542200

src/paho/mqtt/reasoncodes.py:122: error: Incompatible types in assignment (expression has type "dict[int, dict[str, list[int]]]", variable has type "MappingProxyType[int, dict[str, list[int]]]")  [assignment]
Found 1 error in 1 file (checked 11 source files)
lint: exit 1 (4.71 seconds) /home/runner/work/paho.mqtt.python/paho.mqtt.python> mypy src pid=3128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants