Skip to content

Commit 81235ff

Browse files
authored
Minor changes (#1464)
Spelling + unused type ignore
1 parent 43ea7a0 commit 81235ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

astroid/nodes/node_ng.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def last_child(self) -> Optional["NodeNG"]:
261261
"""An optimized version of list(get_children())[-1]"""
262262
for field in self._astroid_fields[::-1]:
263263
attr = getattr(self, field)
264-
if not attr: # None or empty listy / tuple
264+
if not attr: # None or empty list / tuple
265265
continue
266266
if isinstance(attr, (list, tuple)):
267267
return attr[-1]

astroid/rebuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2330,7 +2330,7 @@ def visit_matchsingleton(
23302330
self, node: "ast.MatchSingleton", parent: NodeNG
23312331
) -> nodes.MatchSingleton:
23322332
return nodes.MatchSingleton(
2333-
value=node.value, # type: ignore[arg-type] # See https://github.com/python/mypy/pull/10389
2333+
value=node.value,
23342334
lineno=node.lineno,
23352335
col_offset=node.col_offset,
23362336
end_lineno=node.end_lineno,

0 commit comments

Comments
 (0)