add missing type hints

This commit is contained in:
Max Bachmann 2022-03-06 18:57:34 +01:00
parent 55d9c78fa2
commit 0c2f360b3c
3 changed files with 10 additions and 2 deletions

View File

@ -18,7 +18,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest hypothesis pandas mypy rapidfuzz_capi Cython==3.0.0a10
pip install numpy rapidfuzz_capi Cython==3.0.0a10
- name: Generate cython
run: |
@ -59,6 +59,8 @@ jobs:
- name: Test type stubs
if: matrix.python-version != '3.6'
# prevent import from rapidfuzz
working-directory: .github
run: |
python -m mypy.stubtest rapidfuzz --ignore-missing-stub

View File

@ -167,6 +167,8 @@ jobs:
pip install dist/rapidfuzz-*.tar.gz
- name: Test type stubs
# prevent import from rapidfuzz
working-directory: .github
run: |
python -m mypy.stubtest rapidfuzz --ignore-missing-stub

View File

@ -7,7 +7,7 @@ with open('README.md', 'rt', encoding="utf8") as f:
setup(
name="rapidfuzz",
version="2.0.5",
install_requires=["jarowinkler >= 1.0.0, < 1.1.0"],
install_requires=["jarowinkler >= 1.0.1, < 1.1.0"],
extras_require={'full': ['numpy']},
url="https://github.com/maxbachmann/RapidFuzz",
author="Max Bachmann",
@ -28,6 +28,10 @@ setup(
],
packages=["rapidfuzz", "rapidfuzz/distance"],
package_data={
"rapidfuzz": ["*.pyi", "py.typed"],
"rapidfuzz/distance": ["*.pyi"]
},
python_requires=">=3.6",
cmake_args=[f'-DRF_CAPI_PATH:STRING={rapidfuzz_capi.get_include()}']