Skip to content

Commit 5b960d6

Browse files
authored
Fix static typing (#13)
* chore(_oligos): Fix static typing of _oligos module. * ci(workflows.docs): Fix documentation deployment workflow to checkout all tags.
1 parent 7a40f7f commit 5b960d6

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/build-docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
21+
fetch-tags: true
22+
ref: ${{ github.event.repository.default_branch }}
2123

2224
- name: Set up Python
2325
uses: actions/setup-python@v5

src/designer_dna/_oligos.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@
2828
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929

3030
from array import array
31-
from typing import Any
3231

33-
def m_reverse(sequence: array[int]) -> Any:
32+
def m_reverse(sequence: array[int]) -> None:
3433
"""Reverse a nucleotide sequence.
3534
3635
Args:
@@ -58,7 +57,7 @@ def reverse(sequence: str) -> str:
5857
5958
"""
6059

61-
def m_complement(sequence: array[int], dna: bool = ...) -> Any:
60+
def m_complement(sequence: array[int], dna: bool = ...) -> None:
6261
"""Complement a nucleotide sequence.
6362
6463
Args:
@@ -88,7 +87,7 @@ def complement(sequence: str, dna: bool = ...) -> str:
8887
8988
"""
9089

91-
def m_reverse_complement(sequence: array[int], dna: bool = ...) -> Any:
90+
def m_reverse_complement(sequence: array[int], dna: bool = ...) -> None:
9291
"""Reverse complement a nucleotide sequence.
9392
9493
Args:

0 commit comments

Comments
 (0)