testing/py3-nptyping: ignore tests/test_beartype.py
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.1.1, pluggy-1.4.0
rootdir: /home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0
plugins: typeguard-4.2.1
collected 86 items / 1 error
==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_beartype.py ____________________
tests/test_beartype.py:13: in <module>
@beartype
/usr/lib/python3.12/site-packages/beartype/_decor/decorcache.py:77: in beartype
return beartype_object(obj, conf)
/usr/lib/python3.12/site-packages/beartype/_decor/decorcore.py:87: in beartype_object
_beartype_object_fatal(obj, conf=conf, **kwargs)
/usr/lib/python3.12/site-packages/beartype/_decor/decorcore.py:136: in _beartype_object_fatal
beartype_nontype(obj, **kwargs) # type: ignore[return-value]
/usr/lib/python3.12/site-packages/beartype/_decor/_decornontype.py:174: in beartype_nontype
return beartype_func(obj, **kwargs) # type: ignore[return-value]
/usr/lib/python3.12/site-packages/beartype/_decor/_decornontype.py:239: in beartype_func
func_wrapper_code = generate_code(bear_call)
/usr/lib/python3.12/site-packages/beartype/_decor/wrap/wrapmain.py:118: in generate_code
code_check_params = _code_check_args(bear_call)
/usr/lib/python3.12/site-packages/beartype/_decor/wrap/_wrapargs.py:330: in code_check_args
reraise_exception_placeholder(
/usr/lib/python3.12/site-packages/beartype/_util/error/utilerrraise.py:138: in reraise_exception_placeholder
raise exception.with_traceback(exception.__traceback__)
/usr/lib/python3.12/site-packages/beartype/_decor/wrap/_wrapargs.py:189: in code_check_args
hint = sanify_hint_root_func(
/usr/lib/python3.12/site-packages/beartype/_check/convert/convsanify.py:178: in sanify_hint_root_func
hint = reduce_hint(
/usr/lib/python3.12/site-packages/beartype/_check/convert/convreduce.py:201: in reduce_hint
hint = _reduce_hint_uncached(
/usr/lib/python3.12/site-packages/beartype/_check/convert/convreduce.py:280: in _reduce_hint_uncached
hint_sign = get_hint_pep_sign_or_none(hint)
/usr/lib/python3.12/site-packages/beartype/_util/cache/utilcachecall.py:250: in _callable_cached
raise exception
/usr/lib/python3.12/site-packages/beartype/_util/cache/utilcachecall.py:242: in _callable_cached
return_value = args_flat_to_return_value[args_flat] = func(
/usr/lib/python3.12/site-packages/beartype/_util/hint/pep/utilpepget.py:721: in get_hint_pep_sign_or_none
die_if_hint_pep604_inconsistent(hint)
/usr/lib/python3.12/site-packages/beartype/_util/hint/pep/proposal/utilpep604.py:73: in die_if_hint_pep604_inconsistent
raise BeartypeDecorHintPep604Exception(
E beartype.roar.BeartypeDecorHintPep604Exception: Type hint NDArray[Shape['2, 2'], Float] inconsistent with respect to repr() strings. Since @beartype requires consistency between type hints and re
pr() strings, this hint is unsupported by @beartype. Consider reporting this issue to the third-party developer implementing this hint: e.g.,
E >>> repr(NDArray[Shape['2, 2'], Float])
E NDArray[Shape['2, 2'], Float] # <-- this is fine
E >>> repr(NDArray[Shape['2, 2'], Float] | int)
E nptyping.ndarray.NDArray | int # <-- *THIS IS REALLY SUPER BAD*
E
E # Ideally, that output should instead resemble:
E >>> repr(NDArray[Shape['2, 2'], Float] | int)
E NDArray[Shape['2, 2'], Float] | int # <-- what @beartype wants!
=============================== warnings summary ===============================
nptyping/typing_.py:51
/home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:51: DeprecationWarning: `np.bool8` is a deprecated alias for `np.bool_`. (Deprecated NumPy 1.24)
Bool8 = np.bool8
nptyping/typing_.py:54
/home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:54: DeprecationWarning: `np.object0` is a deprecated alias for ``np.object0` is a deprecated alias for `np.object_
`. `object` can be used instead. (Deprecated NumPy 1.24)`. (Deprecated NumPy 1.24)
Object0 = np.object0
nptyping/typing_.py:66
/home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:66: DeprecationWarning: `np.int0` is a deprecated alias for `np.intp`. (Deprecated NumPy 1.24)
Int0 = np.int0
nptyping/typing_.py:80
/home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:80: DeprecationWarning: `np.uint0` is a deprecated alias for `np.uintp`. (Deprecated NumPy 1.24)
UInt0 = np.uint0
nptyping/typing_.py:107
/home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:107: DeprecationWarning: `np.void0` is a deprecated alias for `np.void`. (Deprecated NumPy 1.24)
Void0 = np.void0
nptyping/typing_.py:112
/home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:112: DeprecationWarning: `np.bytes0` is a deprecated alias for `np.bytes_`. (Deprecated NumPy 1.24)
Bytes0 = np.bytes0
nptyping/typing_.py:114
/home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:114: DeprecationWarning: `np.str0` is a deprecated alias for `np.str_`. (Deprecated NumPy 1.24)
Str0 = np.str0
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/test_beartype.py - beartype.roar.BeartypeDecorHintPep604Exception...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 7 warnings, 1 error in 0.72s =========================
>>> ERROR: py3-nptyping: check failed