We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This issue agronholm/typeguard#277 is solved now. Test and incorporate.
The text was updated successfully, but these errors were encountered:
This is currently still not working as typeguard is not yet released on pypi and nox_poetry has some issues with installing from github...
However, it is unclear whether version 3.0.0rc1 seems to solve the issue. Using the file test.py with
3.0.0rc1
test.py
from typing import TypeVar import numpy as np import numpy.typing as npt from numba import njit from typeguard import typechecked T = TypeVar("T", bound=np.generic) @typechecked @njit def numba_sum( array: npt.NDArray[T], ) -> T: return np.sum(array) x = np.arange(4) s = numba_sum.py_func(x) s = numba_sum(x)
and running the command poetry run python test.py gives the warning
poetry run python test.py
/home/niklas/.cache/pypoetry/virtualenvs/merge-stardist-masks-Mk5qjuGF-py3.9/lib/python3.9/site-packages/typeguard/_decorators.py:170: InstrumentationWarning: Cannot instrument __main__.numba_sum -- @typechecked only supports instrumenting functions wrapped with @classmethod, @staticmethod or @property warn(
Using nox -s typeguard -p 3.9 gives several errors.
nox -s typeguard -p 3.9
Sorry, something went wrong.
I asked for help here: agronholm/typeguard#306
No branches or pull requests
This issue agronholm/typeguard#277 is solved now. Test and incorporate.
The text was updated successfully, but these errors were encountered: