add missing type hints
This commit is contained in:
parent
55d9c78fa2
commit
0c2f360b3c
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
6
setup.py
6
setup.py
|
@ -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()}']
|
||||
|
|
Loading…
Reference in New Issue