hiroyuki-sato opened a new pull request, #50986:
URL: https://github.com/apache/arrow/pull/50986

   ### Rationale for this change
   
   Updating cython-lint resolves this compatibility issue.
   
   ```
   Python (Cython) 
Lint.....................................................Failed
   - hook id: cython-lint
   - exit code: 1
   
   Traceback (most recent call last):
     File 
"/home/runner/.cache/pre-commit/repoohugd5tn/py_env-python3/bin/cython-lint", 
line 8, in <module>
       sys.exit(main())
                ^^^^^^
     File 
"/home/runner/.cache/pre-commit/repoohugd5tn/py_env-python3/lib/python3.12/site-packages/cython_lint/cython_lint.py",
 line 960, in main
       ret |= _main(
              ^^^^^^
     File 
"/home/runner/.cache/pre-commit/repoohugd5tn/py_env-python3/lib/python3.12/site-packages/cython_lint/cython_lint.py",
 line 837, in _main
       lines = run_ast_checks(code, filename, violations)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/runner/.cache/pre-commit/repoohugd5tn/py_env-python3/lib/python3.12/site-packages/cython_lint/cython_lint.py",
 line 751, in run_ast_checks
       names, imported_names, global_names, exported_imports = _traverse_file(
                                                               ^^^^^^^^^^^^^^^
     File 
"/home/runner/.cache/pre-commit/repoohugd5tn/py_env-python3/lib/python3.12/site-packages/cython_lint/cython_lint.py",
 line 541, in _traverse_file
       expr = node.loop.body.value_expr
              ^^^^^^^^^^^^^^^^^^^^^^^^^
   AttributeError: 'DictComprehensionAppendNode' object has no attribute 
'value_expr'
   Traceback (most recent call last):
     File 
"/home/runner/.cache/pre-commit/repoohugd5tn/py_env-python3/bin/cython-lint", 
line 8, in <module>
       sys.exit(main())
                ^^^^^^
     File 
"/home/runner/.cache/pre-commit/repoohugd5tn/py_env-python3/lib/python3.12/site-packages/cython_lint/cython_lint.py",
 line 960, in main
       ret |= _main(
              ^^^^^^
     File 
"/home/runner/.cache/pre-commit/repoohugd5tn/py_env-python3/lib/python3.12/site-packages/cython_lint/cython_lint.py",
 line 837, in _main
       lines = run_ast_checks(code, filename, violations)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/runner/.cache/pre-commit/repoohugd5tn/py_env-python3/lib/python3.12/site-packages/cython_lint/cython_lint.py",
 line 751, in run_ast_checks
       names, imported_names, global_names, exported_imports = _traverse_file(
                                                               ^^^^^^^^^^^^^^^
     File 
"/home/runner/.cache/pre-commit/repoohugd5tn/py_env-python3/lib/python3.12/site-packages/cython_lint/cython_lint.py",
 line 541, in _traverse_file
       expr = node.loop.body.value_expr
              ^^^^^^^^^^^^^^^^^^^^^^^^^
   AttributeError: 'DictComprehensionAppendNode' object has no attribute 
'value_expr'
   ```
   
   ### What changes are included in this PR?
   
   Update cython-lint from 0.16.2 to 0.21.0.
   
   ### Are these changes tested?
   
   Yes.
   
   ### Are there any user-facing changes?
   
   No.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to