Skip to content

Commit ee239d3

Browse files
jacobtylerwallsareveny
authored andcommitted
Fix typos in pylint/checkers/variables.py (pylint-dev#5639)
1 parent 26509f6 commit ee239d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylint/checkers/variables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def _uncertain_nodes_in_except_blocks(found_nodes, node, node_statement):
726726
):
727727
uncertain_nodes.append(other_node)
728728
else:
729-
# Assume the except blocks execute. Possiblility for a false negative
729+
# Assume the except blocks execute. Possibility for a false negative
730730
# if one of the except blocks does not define the name in question,
731731
# raise, or return. See: https://github.com/PyCQA/pylint/issues/5524.
732732
continue
@@ -1806,7 +1806,7 @@ def _is_only_type_assignment(node: nodes.Name, defstmt: nodes.Statement) -> bool
18061806
if defstmt_frame == node_frame and not ref_node.lineno < node.lineno:
18071807
break
18081808

1809-
# If the parent of the local reference is anything but a AnnAssign
1809+
# If the parent of the local reference is anything but an AnnAssign
18101810
# Or if the AnnAssign adds a value the variable will now have a value
18111811
# var = 1 # OR
18121812
# var: int = 1

0 commit comments

Comments
 (0)