added type annotations to most common oublic methods for Bio/Align, A…#5057
Closed
dimi1729 wants to merge 2 commits intobiopython:masterfrom
Closed
added type annotations to most common oublic methods for Bio/Align, A…#5057dimi1729 wants to merge 2 commits intobiopython:masterfrom
dimi1729 wants to merge 2 commits intobiopython:masterfrom
Conversation
…lignIO, Graphics, HMM, KEGG, and PDB
mdehoon
approved these changes
Sep 6, 2025
Member
|
Looks like there are still 3 mypy errors? |
peterjc
reviewed
Sep 11, 2025
| """ | ||
| self.alignment = alignment | ||
| self.ic_vector = [] | ||
| self.ic_vector: list[float] = [] |
Member
There was a problem hiding this comment.
Should this be broader than just list? Arrays? (I don't know)
Member
|
It would have been easier to review this in chunks, especially when multiple code owners are involed. |
This was referenced Oct 24, 2025
peterjc
reviewed
Oct 26, 2025
|
|
||
| seq = seq if strand == ref_first_strand else seq.reverse_complement() | ||
| if strand != ref_first_strand: | ||
| sequence = Seq(sequence.reverse_complement()) |
Member
There was a problem hiding this comment.
This is a change from just using the method - why?
Member
|
I'm going to close this, but encourage you to resubmit this in smaller chunks like just Graphics, just HMM, just KEGG, etc - once the automated checks are all passing for you locally. This will be easier to review - and easier to assign for review. Thank you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…lignIO, Graphics, HMM, KEGG, and PDB
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile, have runpre-commitlocally, and understand that continuous integration checks will be used to
confirm the Biopython unit tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)
Addresses #2236
Added type annotations to most getter functions in Align, AlignIO, Graphics, HMM, KEGG, and PDB modules. While this is not a completed effort, it will hopefully be useful to people who use these modules and like type hints. Since no added functionality was added and very little actual logic was changed, no additional tests were created, but all existing tests were ran.