Skip to content

Add clear type annotations and interaction records - #207

Open
LukasBuschmann wants to merge 1 commit into
pharmai:masterfrom
LukasBuschmann:type-annotations
Open

Add clear type annotations and interaction records#207
LukasBuschmann wants to merge 1 commit into
pharmai:masterfrom
LukasBuschmann:type-annotations

Conversation

@LukasBuschmann

Copy link
Copy Markdown

Summary

  • add explicit type annotations across structure preparation, detection, reporting, visualization, CLI, and tests
  • replace anonymous interaction tuples with descriptive NamedTuple records while retaining the historical aliases
  • make shared interaction and structure records explicit in plip/structure/records.py
  • align the declared Python requirement with the syntax and dependency baseline (>=3.10)

This is intended as a typing and representation refactor without changes to interaction-detection semantics.

Testing

python -m unittest discover -s . -p "test_*.py"

Baseline comparison in the same Python 3.12 environment:

  • master: 74 tests, 29 failures, 1 error, 1 skipped
  • this branch: 75 tests, 29 failures, 1 error, 1 skipped

The existing failures are unchanged; this change introduces no additional failing test. Test-suite corrections are intentionally being handled separately.

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