Skip to content

Commit 4af294a

Browse files
Fix type annotation
TryExcept was removed in astroid 3.0.0a7
1 parent 9b65de8 commit 4af294a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint/checkers/refactoring/refactoring_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def _is_bool_const(node: nodes.Return | nodes.Assign) -> bool:
538538
node.value.value, bool
539539
)
540540

541-
def _is_actual_elif(self, node: nodes.If | nodes.TryExcept) -> bool:
541+
def _is_actual_elif(self, node: nodes.If | nodes.Try) -> bool:
542542
"""Check if the given node is an actual elif.
543543
544544
This is a problem we're having with the builtin ast module,

0 commit comments

Comments
 (0)