Skip to content

Commit 7e08096

Browse files
Update nodes.py
1 parent 81b6592 commit 7e08096

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypy/nodes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,9 @@ def accept(self, visitor: ExpressionVisitor[T]) -> T:
17601760

17611761

17621762
def is_IntExpr_list(items: List[Expression]) -> TypeGuard[List[IntExpr]]:
1763+
return all(isinstance(item, IntExpr) for item in items)
1764+
1765+
17631766
# How mypy uses StrExpr and BytesExpr:
17641767
#
17651768
# b'x' -> BytesExpr

0 commit comments

Comments
 (0)