Skip to content

Commit

Permalink
Minor changes (#1464)
Browse files Browse the repository at this point in the history
Spelling + unused type ignore
  • Loading branch information
cdce8p authored Mar 9, 2022
1 parent 43ea7a0 commit 81235ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion astroid/nodes/node_ng.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def last_child(self) -> Optional["NodeNG"]:
"""An optimized version of list(get_children())[-1]"""
for field in self._astroid_fields[::-1]:
attr = getattr(self, field)
if not attr: # None or empty listy / tuple
if not attr: # None or empty list / tuple
continue
if isinstance(attr, (list, tuple)):
return attr[-1]
Expand Down
2 changes: 1 addition & 1 deletion astroid/rebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,7 @@ def visit_matchsingleton(
self, node: "ast.MatchSingleton", parent: NodeNG
) -> nodes.MatchSingleton:
return nodes.MatchSingleton(
value=node.value, # type: ignore[arg-type] # See https://github.com/python/mypy/pull/10389
value=node.value,
lineno=node.lineno,
col_offset=node.col_offset,
end_lineno=node.end_lineno,
Expand Down

0 comments on commit 81235ff

Please sign in to comment.