Skip to content

Commit 79b145f

Browse files
added type hint for mypyc
1 parent 381362b commit 79b145f

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
@@ -5891,7 +5891,7 @@ def check_for_comp(self, e: GeneratorExpr | DictionaryComprehension) -> None:
58915891

58925892
def visit_conditional_expr(self, e: ConditionalExpr, allow_none_return: bool = False) -> Type:
58935893
self.accept(e.cond)
5894-
ctx = self.type_context[-1]
5894+
ctx: Type | None = self.type_context[-1]
58955895

58965896
# Gain type information from isinstance if it is there
58975897
# but only for the current expression

0 commit comments

Comments
 (0)