Skip to content

Commit e445651

Browse files
committed
update comment
1 parent 78dbff2 commit e445651

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mypy/checker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4844,9 +4844,9 @@ def _transform_sequence_expressions_for_narrowing_with_in(self, e: Expression) -
48444844
48454845
(x is None) and (x == 1 or x == 2) and (x != 3 and x != 4)
48464846
4847-
This transformation is supposed to enable narrowing literals and enums using the in
4848-
(and the not in) operator in combination with tuple expressions without the need to
4849-
implement additional narrowing logic.
4847+
This transformation is supposed to enable narrowing literals and enums using the
4848+
in (and the not in) operator in combination with tuple, list, and set expressions
4849+
without the need to implement additional narrowing logic.
48504850
"""
48514851
if isinstance(e, OpExpr):
48524852
e.left = self._transform_sequence_expressions_for_narrowing_with_in(e.left)

0 commit comments

Comments
 (0)