Skip to content

Commit

Permalink
Fix type annotation
Browse files Browse the repository at this point in the history
TryExcept was removed in astroid 3.0.0a7
  • Loading branch information
jacobtylerwalls committed Jul 13, 2023
1 parent 9b65de8 commit 4af294a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint/checkers/refactoring/refactoring_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def _is_bool_const(node: nodes.Return | nodes.Assign) -> bool:
node.value.value, bool
)

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

0 comments on commit 4af294a

Please sign in to comment.