Skip to content

Commit

Permalink
Add type information
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Mar 4, 2019
1 parent 306ee91 commit 6b98935
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libversion/_libversion.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def version_compare2(v1: str, v2: str) -> int: ...
def version_compare4(v1: str, v2: str, flags1: int, flags2: int) -> int: ...
def version_compare(v1: str, v2: str, flags1: int=..., flags2: int=...) -> int: ...
Empty file added libversion/py.typed
Empty file.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def get_long_description():
'Topic :: System :: Software Distribution',
],
packages=['libversion'],
package_data={'libversion': ['py.typed', '_libversion.pyi']},
ext_modules=[
Extension(
'libversion._libversion',
Expand Down

0 comments on commit 6b98935

Please sign in to comment.