Skip to content

Commit 38f36c3

Browse files
added type hint for mypyc
1 parent cf0346f commit 38f36c3

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

58775877
def visit_conditional_expr(self, e: ConditionalExpr, allow_none_return: bool = False) -> Type:
58785878
self.accept(e.cond)
5879-
ctx = self.type_context[-1]
5879+
ctx: Type | None = self.type_context[-1]
58805880

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

0 commit comments

Comments
 (0)