Skip to content

Commit

Permalink
style: update docstrings, include pragma no cover statement
Browse files Browse the repository at this point in the history
  • Loading branch information
emmcauley committed Oct 7, 2024
1 parent 932c823 commit a8951d5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prymer/primer3/primer3.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def design(self, design_input: Primer3Input) -> Primer3Result: # noqa: C901
min_primer_length=design_input.primer_and_amplicon_params.min_primer_length,
)
case _ as unreachable:

Check warning on line 385 in prymer/primer3/primer3.py

View check run for this annotation

Codecov / codecov/patch

prymer/primer3/primer3.py#L385

Added line #L385 was not covered by tests
assert_never(unreachable)
assert_never(unreachable) # pragma: no cover

soft_masked, hard_masked = self.get_design_sequences(design_region)
global_primer3_params = {
Expand Down
18 changes: 17 additions & 1 deletion prymer/primer3/primer3_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,23 @@
@dataclass(frozen=True, init=True, slots=True)
class Primer3Input:
"""Assembles necessary inputs for Primer3 to orchestrate primer, primer pair, and/or internal
probe design."""
probe design.
At least one set of design parameters (either `PrimerAndAmpliconParameters`
or `ProbeParameters`) must be specified.
If `PrimerAndAmpliconParameters` is provided but `PrimerAndAmpliconWeights` is not provided,
default `PrimerAndAmpliconWeights` will be used.
Similarly, if `ProbeParameters` is provided but `ProbeWeights` is not provided, default
`ProbeWeights` will be used.
Please see primer3_parameters.py for details on the defaults.
Raises:
ValueError: if neither the primer or probe parameters are specified
"""

target: Span
task: Primer3TaskType
Expand Down

0 comments on commit a8951d5

Please sign in to comment.