Skip to content

Commit

Permalink
Add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelm committed Sep 1, 2023
1 parent 2f14c07 commit 80525f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tinyalign/_core.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def edit_distance(s: str, t: str, maxdiff: int = ...) -> int: ...
def hamming_distance(s: str, t: str) -> int: ...
4 changes: 4 additions & 0 deletions src/tinyalign/_version.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# The _version.py file is generated on installation. By including this stub,
# we can run mypy without having to install the package.

version: str
Empty file added src/tinyalign/py.typed
Empty file.

0 comments on commit 80525f2

Please sign in to comment.