>>> py3-nptyping: Checking sanity of /home/patrycja/aports/testing/py3-nptyping/APKBUILD... >>> py3-nptyping: Cleaning up srcdir >>> py3-nptyping: Cleaning up pkgdir >>> py3-nptyping: Cleaning up tmpdir >>> py3-nptyping: Fetching nptyping-2.5.0.tar.gz::https://github.com/ramonhagenaars/nptyping/archive/refs/tags/v2.5.0.tar.gz >>> py3-nptyping: Fetching nptyping-2.5.0.tar.gz::https://github.com/ramonhagenaars/nptyping/archive/refs/tags/v2.5.0.tar.gz >>> py3-nptyping: Checking sha512sums... nptyping-2.5.0.tar.gz: OK >>> py3-nptyping: Preparing build chroot... (1/135) Installing musl (1.2.5-r0) (2/135) Installing ca-certificates-bundle (20240226-r0) (3/135) Installing libcrypto3 (3.2.1-r2) (4/135) Installing libssl3 (3.2.1-r2) (5/135) Installing zlib (1.3.1-r0) (6/135) Installing apk-tools (2.14.3-r1) (7/135) Installing libattr (2.5.2-r0) (8/135) Installing attr (2.5.2-r0) (9/135) Installing libcap2 (2.69-r1) (10/135) Installing libcap-getcap (2.69-r1) (11/135) Installing fakeroot (1.33-r0) (12/135) Installing scanelf (1.3.7-r2) (13/135) Installing musl-utils (1.2.5-r0) (14/135) Installing libgcc (13.2.1_git20240309-r0) (15/135) Installing libstdc++ (13.2.1_git20240309-r0) (16/135) Installing lzip (1.24.1-r0) (17/135) Installing openssl (3.2.1-r2) (18/135) Installing patch (2.7.6-r10) (19/135) Installing pkgconf (2.2.0-r0) (20/135) Installing libacl (2.3.2-r0) (21/135) Installing tar (1.35-r2) (22/135) Installing busybox (1.36.1-r25) Executing busybox-1.36.1-r25.post-install (23/135) Installing ssl_client (1.36.1-r25) (24/135) Installing busybox-binsh (1.36.1-r25) (25/135) Installing abuild (3.12.0-r5) Executing abuild-3.12.0-r5.pre-install (26/135) Installing abuild-sudo (3.12.0-r5) (27/135) Installing alpine-baselayout-data (3.6.3-r0) (28/135) Installing alpine-baselayout (3.6.3-r0) Executing alpine-baselayout-3.6.3-r0.pre-install Executing alpine-baselayout-3.6.3-r0.post-install (29/135) Installing ifupdown-ng (0.12.1-r5) (30/135) Installing openrc (0.54-r1) Executing openrc-0.54-r1.post-install (31/135) Installing mdev-conf (4.6-r0) (32/135) Installing busybox-mdev-openrc (1.36.1-r25) (33/135) Installing alpine-conf (3.17.2-r0) (34/135) Installing alpine-keys (2.4-r1) (35/135) Installing alpine-release (3.20.0_alpha20240329-r0) (36/135) Installing busybox-openrc (1.36.1-r25) (37/135) Installing busybox-suid (1.36.1-r25) (38/135) Installing alpine-base (3.20.0_alpha20240329-r0) (39/135) Installing jansson (2.14-r4) (40/135) Installing zstd-libs (1.5.6-r0) (41/135) Installing binutils (2.42-r0) (42/135) Installing libmagic (5.45-r1) (43/135) Installing file (5.45-r1) (44/135) Installing libgomp (13.2.1_git20240309-r0) (45/135) Installing libatomic (13.2.1_git20240309-r0) (46/135) Installing gmp (6.3.0-r0) (47/135) Installing isl26 (0.26-r1) (48/135) Installing mpfr4 (4.2.1-r0) (49/135) Installing mpc1 (1.3.1-r1) (50/135) Installing gcc (13.2.1_git20240309-r0) (51/135) Installing libstdc++-dev (13.2.1_git20240309-r0) (52/135) Installing musl-dev (1.2.5-r0) (53/135) Installing g++ (13.2.1_git20240309-r0) (54/135) Installing make (4.4.1-r2) (55/135) Installing fortify-headers (1.1-r3) (56/135) Installing build-base (0.5-r3) (57/135) Installing hiredis (1.2.0-r0) (58/135) Installing libxxhash (0.8.2-r2) (59/135) Installing ccache (4.9.1-r0) (60/135) Installing ca-certificates (20240226-r0) (61/135) Installing brotli-libs (1.1.0-r2) (62/135) Installing c-ares (1.28.1-r0) (63/135) Installing libunistring (1.2-r0) (64/135) Installing libidn2 (2.3.7-r0) (65/135) Installing nghttp2-libs (1.61.0-r0) (66/135) Installing libpsl (0.21.5-r1) (67/135) Installing libcurl (8.7.1-r0) (68/135) Installing libexpat (2.6.2-r0) (69/135) Installing pcre2 (10.43-r0) (70/135) Installing git (2.44.0-r2) (71/135) Installing git-init-template (2.44.0-r2) (72/135) Installing libbz2 (1.0.8-r6) (73/135) Installing libffi (3.4.6-r0) (74/135) Installing gdbm (1.23-r1) (75/135) Installing xz-libs (5.6.1-r2) (76/135) Installing mpdecimal (4.0.0-r0) (77/135) Installing ncurses-terminfo-base (6.4_p20240330-r0) (78/135) Installing libncursesw (6.4_p20240330-r0) (79/135) Installing libpanelw (6.4_p20240330-r0) (80/135) Installing readline (8.2.10-r0) (81/135) Installing sqlite-libs (3.45.2-r0) (82/135) Installing python3 (3.12.2-r0) (83/135) Installing python3-pycache-pyc0 (3.12.2-r0) (84/135) Installing pyc (3.12.2-r0) (85/135) Installing py3-beartype-pyc (0.17.2-r0) (86/135) Installing python3-pyc (3.12.2-r0) (87/135) Installing py3-beartype (0.17.2-r0) (88/135) Installing py3-mypy-extensions (1.0.0-r3) (89/135) Installing py3-mypy-extensions-pyc (1.0.0-r3) (90/135) Installing py3-typing-extensions (4.11.0-r1) (91/135) Installing py3-typing-extensions-pyc (4.11.0-r1) (92/135) Installing py3-mypy (1.9.0-r1) (93/135) Installing py3-mypy-pyc (1.9.0-r1) (94/135) Installing libquadmath (13.2.1_git20240309-r0) (95/135) Installing libgfortran (13.2.1_git20240309-r0) (96/135) Installing openblas (0.3.27-r0) (97/135) Installing py3-numpy (1.25.2-r1) (98/135) Installing py3-numpy-pyc (1.25.2-r1) (99/135) Installing py3-six (1.16.0-r9) (100/135) Installing py3-six-pyc (1.16.0-r9) (101/135) Installing py3-dateutil (2.9.0-r1) (102/135) Installing py3-dateutil-pyc (2.9.0-r1) (103/135) Installing py3-tz (2024.1-r1) (104/135) Installing py3-tz-pyc (2024.1-r1) (105/135) Installing py3-pandas (2.0.3-r1) (106/135) Installing py3-pandas-pyc (2.0.3-r1) (107/135) Installing py3-iniconfig (2.0.0-r1) (108/135) Installing py3-iniconfig-pyc (2.0.0-r1) (109/135) Installing py3-parsing (3.1.2-r1) (110/135) Installing py3-parsing-pyc (3.1.2-r1) (111/135) Installing py3-packaging (24.0-r1) (112/135) Installing py3-packaging-pyc (24.0-r1) (113/135) Installing py3-pluggy (1.4.0-r1) (114/135) Installing py3-pluggy-pyc (1.4.0-r1) (115/135) Installing py3-py (1.11.0-r3) (116/135) Installing py3-py-pyc (1.11.0-r3) (117/135) Installing py3-pytest (8.1.1-r1) (118/135) Installing py3-pytest-pyc (8.1.1-r1) (119/135) Installing py3-setuptools (69.2.0-r1) (120/135) Installing py3-setuptools-pyc (69.2.0-r1) (121/135) Installing py3-editables (0.5-r2) (122/135) Installing py3-editables-pyc (0.5-r2) (123/135) Installing py3-pathspec (0.12.1-r2) (124/135) Installing py3-pathspec-pyc (0.12.1-r2) (125/135) Installing py3-trove-classifiers (2024.3.3-r2) (126/135) Installing py3-trove-classifiers-pyc (2024.3.3-r2) (127/135) Installing py3-hatchling (1.22.5-r1) (128/135) Installing py3-hatchling-pyc (1.22.5-r1) (129/135) Installing py3-bracex (2.4-r1) (130/135) Installing py3-bracex-pyc (2.4-r1) (131/135) Installing py3-typeguard (4.2.1-r1) (132/135) Installing py3-typeguard-pyc (4.2.1-r1) (133/135) Installing py3-wheel (0.42.0-r1) (134/135) Installing py3-wheel-pyc (0.42.0-r1) (135/135) Installing tini (0.19.0-r3) Executing busybox-1.36.1-r25.trigger Executing ca-certificates-20240226-r0.trigger OK: 443 MiB in 135 packages >>> py3-nptyping: Fetching nptyping-2.5.0.tar.gz::https://github.com/ramonhagenaars/nptyping/archive/refs/tags/v2.5.0.tar.gz >>> py3-nptyping: Checking sha512sums... nptyping-2.5.0.tar.gz: OK >>> py3-nptyping: Unpacking /var/cache/distfiles/nptyping-2.5.0.tar.gz... running build running build_py creating build creating build/lib creating build/lib/nptyping copying nptyping/structure_expression.py -> build/lib/nptyping copying nptyping/nptyping_type.py -> build/lib/nptyping copying nptyping/structure.py -> build/lib/nptyping copying nptyping/error.py -> build/lib/nptyping copying nptyping/typing_.py -> build/lib/nptyping copying nptyping/recarray.py -> build/lib/nptyping copying nptyping/package_info.py -> build/lib/nptyping copying nptyping/assert_isinstance.py -> build/lib/nptyping copying nptyping/__init__.py -> build/lib/nptyping copying nptyping/base_meta_classes.py -> build/lib/nptyping copying nptyping/shape_expression.py -> build/lib/nptyping copying nptyping/ndarray.py -> build/lib/nptyping copying nptyping/shape.py -> build/lib/nptyping creating build/lib/nptyping/pandas_ copying nptyping/pandas_/dataframe.py -> build/lib/nptyping/pandas_ copying nptyping/pandas_/typing_.py -> build/lib/nptyping/pandas_ copying nptyping/pandas_/__init__.py -> build/lib/nptyping/pandas_ copying nptyping/recarray.pyi -> build/lib/nptyping copying nptyping/shape.pyi -> build/lib/nptyping copying nptyping/typing_.pyi -> build/lib/nptyping copying nptyping/ndarray.pyi -> build/lib/nptyping copying nptyping/structure.pyi -> build/lib/nptyping copying nptyping/py.typed -> build/lib/nptyping copying nptyping/pandas_/dataframe.pyi -> build/lib/nptyping/pandas_ ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0 rootdir: /home/patrycja/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 @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:83: in beartype_object _beartype_object_fatal(obj, conf=conf, **kwargs) /usr/lib/python3.12/site-packages/beartype/_decor/decorcore.py:132: in _beartype_object_fatal beartype_nontype(obj, **kwargs) # type: ignore[return-value] /usr/lib/python3.12/site-packages/beartype/_decor/_decornontype.py:177: in beartype_nontype return beartype_func(obj, **kwargs) # type: ignore[return-value] /usr/lib/python3.12/site-packages/beartype/_decor/_decornontype.py:242: in beartype_func func_wrapper_code = generate_code(bear_call) /usr/lib/python3.12/site-packages/beartype/_decor/wrap/wrapmain.py:186: in generate_code code_check_params = _code_check_args(bear_call) /usr/lib/python3.12/site-packages/beartype/_decor/wrap/wrapmain.py:496: in _code_check_args reraise_exception_placeholder( /usr/lib/python3.12/site-packages/beartype/_util/error/utilerrorraise.py:215: in reraise_exception_placeholder raise exception.with_traceback(exception.__traceback__) /usr/lib/python3.12/site-packages/beartype/_decor/wrap/wrapmain.py:400: in _code_check_args hint_sane = sanify_hint_root_func( /usr/lib/python3.12/site-packages/beartype/_check/convert/convsanify.py:177: in sanify_hint_root_func hint = reduce_hint( /usr/lib/python3.12/site-packages/beartype/_check/convert/convreduce.py:147: in reduce_hint hint = _reduce_hint_uncached( /usr/lib/python3.12/site-packages/beartype/_check/convert/convreduce.py:213: in _reduce_hint_uncached hint_sign = get_hint_pep_sign_or_none(hint) /usr/lib/python3.12/site-packages/beartype/_util/cache/utilcachecall.py:259: in _callable_cached raise exception /usr/lib/python3.12/site-packages/beartype/_util/cache/utilcachecall.py:251: 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:71: 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 repr() 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/patrycja/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/patrycja/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/patrycja/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/patrycja/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/patrycja/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/patrycja/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/patrycja/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.46s ========================= >>> ERROR: py3-nptyping: check failed >>> ERROR: py3-nptyping: rootbld failed >>> py3-nptyping: Cleaning up build chroot