You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/../pylint/venv-39_link/bin/pylint", line 33, in <module>
sys.exit(load_entry_point('pylint', 'console_scripts', 'pylint')())
File "/../pylint/pylint/__init__.py", line 24, in run_pylint
PylintRun(sys.argv[1:])
File "/../pylint/pylint/lint/run.py", line 358, in __init__
linter.check(args)
File "/../pylint/pylint/lint/pylinter.py", line 873, in check
self._check_files(
File "/../pylint/pylint/lint/pylinter.py", line 907, in _check_files
self._check_file(get_ast, check_astroid_module, name, filepath, modname)
File "/../pylint/pylint/lint/pylinter.py", line 933, in _check_file
check_astroid_module(ast_node)
File "/../pylint/pylint/lint/pylinter.py", line 1067, in check_astroid_module
retval = self._check_astroid_module(
File "/../pylint/pylint/lint/pylinter.py", line 1112, in _check_astroid_module
walker.walk(ast_node)
File "/../pylint/pylint/utils/ast_walker.py", line 77, in walk
self.walk(child)
File "/../pylint/pylint/utils/ast_walker.py", line 74, in walk
callback(astroid)
File "/../pylint/pylint/checkers/refactoring/refactoring_checker.py", line 622, in visit_if
self._check_consider_using_min_max_builtin(node)
File "/../pylint/pylint/checkers/refactoring/refactoring_checker.py", line 680, in _check_consider_using_min_max_builtin
right_statement_value = right_statement.value
AttributeError: 'UnaryOp' object has no attribute 'value'
Steps to reproduce
Given a file
a.py
:Current behavior
Result of
pylint a.py
:Expected behavior
No crash.
pylint --version output
--
Related to #4359
/CC: @Pierre-Sassoulas, @Qwiddle13, @manderj
I'll open a MR for it shortly.
The text was updated successfully, but these errors were encountered: