File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ def last_child(self) -> Optional["NodeNG"]:
261
261
"""An optimized version of list(get_children())[-1]"""
262
262
for field in self ._astroid_fields [::- 1 ]:
263
263
attr = getattr (self , field )
264
- if not attr : # None or empty listy / tuple
264
+ if not attr : # None or empty list / tuple
265
265
continue
266
266
if isinstance (attr , (list , tuple )):
267
267
return attr [- 1 ]
Original file line number Diff line number Diff line change @@ -2330,7 +2330,7 @@ def visit_matchsingleton(
2330
2330
self , node : "ast.MatchSingleton" , parent : NodeNG
2331
2331
) -> nodes .MatchSingleton :
2332
2332
return nodes .MatchSingleton (
2333
- value = node .value , # type: ignore[arg-type] # See https://github.com/python/mypy/pull/10389
2333
+ value = node .value ,
2334
2334
lineno = node .lineno ,
2335
2335
col_offset = node .col_offset ,
2336
2336
end_lineno = node .end_lineno ,
You can’t perform that action at this time.
0 commit comments