Skip to content

fix: narrow write_multi_vars item types - #855

Open
gijzelaerr wants to merge 1 commit into
masterfrom
fix/redundant-write-multi-vars-cast
Open

fix: narrow write_multi_vars item types#855
gijzelaerr wants to merge 1 commit into
masterfrom
fix/redundant-write-multi-vars-cast

Conversation

@gijzelaerr

Copy link
Copy Markdown
Owner

Summary

  • replace the redundant list cast with per-item type narrowing
  • reject mixed S7DataItem and dictionary lists with a clear TypeError
  • keep compatibility with both the pinned mypy hook and newer mypy releases

Validation

  • uv run --frozen pre-commit run --all-files
  • pytest -q (1821 passed, 78 skipped)
  • mypy snap7/client.py
  • uv build --no-sources

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.

1 participant