From 81235ff1b1145002f24609d28b971ad7e3f6dd10 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Wed, 9 Mar 2022 22:20:49 +0100 Subject: [PATCH] Minor changes (#1464) Spelling + unused type ignore --- astroid/nodes/node_ng.py | 2 +- astroid/rebuilder.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/astroid/nodes/node_ng.py b/astroid/nodes/node_ng.py index 03c021d614..a7d107f13c 100644 --- a/astroid/nodes/node_ng.py +++ b/astroid/nodes/node_ng.py @@ -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] diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py index 7d8441e9a1..11feb0365c 100644 --- a/astroid/rebuilder.py +++ b/astroid/rebuilder.py @@ -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,