Skip to content

Commit

Permalink
Add typing
Browse files Browse the repository at this point in the history
(no typing exists for result of statement()`
  • Loading branch information
jacobtylerwalls committed Dec 22, 2021
1 parent 65782ec commit 4b409a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pylint/checkers/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,13 +736,13 @@ def _uncertain_nodes_in_except_blocks(found_nodes, node, node_statement):

@staticmethod
def _uncertain_nodes_in_try_blocks_when_evaluating_except_blocks(
found_nodes, node_statement
):
found_nodes: List[nodes.NodeNG], node_statement
) -> List[nodes.NodeNG]:
"""Return any nodes in ``found_nodes`` that should be treated as uncertain
because they are in a try block and the ``node_statement`` being evaluated
is in one of its except handlers.
"""
uncertain_nodes = []
uncertain_nodes: List[nodes.NodeNG] = []
closest_except_handler = utils.get_node_first_ancestor_of_type(
node_statement, nodes.ExceptHandler
)
Expand Down

0 comments on commit 4b409a2

Please sign in to comment.