Skip to content

Commit 65e214c

Browse files
committed
Handle more special form Anys
1 parent c7a656b commit 65e214c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checkexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6327,7 +6327,7 @@ def __init__(self, ignore_in_type_obj: bool, include_special_form: bool) -> None
63276327
def visit_any(self, t: AnyType) -> bool:
63286328
if self.include_special_form:
63296329
return True
6330-
return t.type_of_any != TypeOfAny.special_form # special forms are not real Any types
6330+
return not t.is_special_form # special forms are not real Any types
63316331

63326332
def visit_tuple_type(self, t: TupleType) -> bool:
63336333
types = t.items.copy()

0 commit comments

Comments
 (0)