Skip to content

Improve from_tuple method: add validation, error handling, and commen…#48

Open
Nitish89847 wants to merge 1 commit intoINCF:masterfrom
Nitish89847:fix-from-tuple-comments
Open

Improve from_tuple method: add validation, error handling, and commen…#48
Nitish89847 wants to merge 1 commit intoINCF:masterfrom
Nitish89847:fix-from-tuple-comments

Conversation

@Nitish89847
Copy link

Summary:

This PR improves the from_tuple() method in BasePortConnection to address Issue #35.

Changes:

  • Adds type and length checks for the input tuple
  • Improves exception messages for missing sender/receiver roles/names
  • Replaces assert False with NineMLUsageError for clarity
  • Adds inline comments to clarify logic

Related Issue

Fixes #35

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.

Add comments and exceptions to from_tuple in BasePortConnection

1 participant