Skip to content

Commit 2fed23c

Browse files
Update nodes.py
1 parent a8f7922 commit 2fed23c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/nodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from collections import defaultdict
88
from collections.abc import Iterator, Sequence
99
from enum import Enum, unique
10-
from typing import TYPE_CHECKING, Any, Callable, Final, Optional, TypeVar, Union, cast
10+
from typing import TYPE_CHECKING, Any, Callable, Final, List, Optional, TypeVar, Union, cast
1111
from typing_extensions import TypeAlias as _TypeAlias, TypeGuard
1212

1313
from mypy_extensions import trait
@@ -1759,6 +1759,7 @@ def accept(self, visitor: ExpressionVisitor[T]) -> T:
17591759
return visitor.visit_int_expr(self)
17601760

17611761

1762+
def is_IntExpr_list(items: List[Expression]) -> TypeGuard[List[IntExpr]]:
17621763
# How mypy uses StrExpr and BytesExpr:
17631764
#
17641765
# b'x' -> BytesExpr

0 commit comments

Comments
 (0)