Package Details: python-beartype 0.19.0-1

Git Clone URL: https://aur.archlinux.org/python-beartype.git (read-only, click to copy)
Package Base: python-beartype
Description: Unbearably fast near-real-time hybrid runtime-static type-checking in pure Python
Upstream URL: https://github.com/beartype/beartype
Licenses: MIT
Submitter: AchmadFathoni
Maintainer: carsme
Last Packager: carsme
Votes: 1
Popularity: 0.003148
First Submitted: 2022-03-21 10:21 (UTC)
Last Updated: 2024-09-27 00:08 (UTC)

Latest Comments

carsme commented on 2024-08-23 14:43 (UTC)

@carlosal1015 Should be fixed in 0.18.5-3.

carlosal1015 commented on 2024-08-19 05:07 (UTC)

Hi, I have the following error message

FAILURES  test_pep561_mypy
    @skip_unless_package('mypy')
    @skip_if_pypy()
    def test_pep561_mypy() -> None:
        '''
        Functional test testing this project's compliance with :pep:`561` by
        externally running :mod:`mypy` (i.e., the most popular third-party static
        type checker as of this test) against this project's top-level package.
        '''

        # ....................{ IMPORTS                        }....................
        # Defer test-specific imports.
        from beartype._util.py.utilpyinterpreter import (
            get_interpreter_command_words)
        from beartype_test._util.command.pytcmdrun import (
            run_command_return_stdout_stderr)
        from beartype_test._util.path.pytpathmain import (
            get_main_mypy_config_file,
            get_main_package_dir,
        )

        # ....................{ COMMAND                        }....................
        # Tuple of all shell words with which to run the external "mypy" command.
        MYPY_ARGS = get_interpreter_command_words() + (
            # Fully-qualified name of the "mypy" package to be run.
            '-m', 'mypy',

            # Absolute dirname of this project's top-level mypy configuration. Since
            # our "tox" configuration isolates testing to a temporary directory,
            # mypy is unable to find its configuration without assistance.
            '--config-file', str(get_main_mypy_config_file()),

            # Absolute dirname of this project's top-level package.
            str(get_main_package_dir()),
        )

        # Run this command, raising an exception on subprocess failure while
        # forwarding all standard output and error output by this subprocess to the
        # standard output and error file handles of the active Python process.
        #
        # Note that we intentionally do *NOT* assert that call to have exited with
        # a successful exit code. Although mypy does exit with success on local
        # developer machines, it inexplicably does *NOT* under remote GitHub
        # Actions-based continuous integration despite "mypy_stderr" being empty.
        # Ergo, we conveniently ignore the former in favour of the latter.
>       mypy_stdout, mypy_stderr = run_command_return_stdout_stderr(
            command_words=MYPY_ARGS)

MYPY_ARGS  = ('/usr/bin/python', '-m', 'mypy', '--config-file', '/tmp/makepkg/python-beartype/src/beartype-0.18.5/mypy.ini', '/tmp/makepkg/python-beartype/src/beartype-0.18.5/beartype')
get_interpreter_command_words = <function get_interpreter_command_words at 0x7f5c895d6f20>
get_main_mypy_config_file = <function get_main_mypy_config_file at 0x7f5c88072660>
get_main_package_dir = <function get_main_package_dir at 0x7f5c880722a0>
run_command_return_stdout_stderr = <function run_command_return_stdout_stderr at 0x7f5c88070ea0>

beartype_test/a90_func/pep/test_pep561_static.py:97: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
beartype_test/_util/command/pytcmdrun.py:329: in run_command_return_stdout_stderr
    command_result = subprocess_run(command_words, **popen_kwargs)
        command_words = ('/usr/bin/python', '-m', 'mypy', '--config-file', '/tmp/makepkg/python-beartype/src/beartype-0.18.5/mypy.ini', '/tmp/makepkg/python-beartype/src/beartype-0.18.5/beartype')
        popen_kwargs = {'capture_output': True, 'check': True

AchmadFathoni commented on 2023-05-23 06:42 (UTC)

Need co-maintainer for faster development response.