Skip to content

Commit

Permalink
Update mypy/checkexpr.py
Browse files Browse the repository at this point in the history
remove unused print statement

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
  • Loading branch information
huguesb and hauntsaninja committed May 1, 2022
1 parent b6585ff commit 84d38f5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mypy/checkexpr.py
Expand Up @@ -3901,8 +3901,6 @@ def visit_conditional_expr(self, e: ConditionalExpr, allow_none_return: bool = F
# Analyze the right branch using full type context and store the type
full_context_else_type = self.analyze_cond_branch(else_map, e.else_expr, context=ctx,
allow_none_return=allow_none_return)

# print(f'{ctx} {if_type} {full_context_else_type}')
if not mypy.checker.is_valid_inferred_type(if_type):
# Analyze the right branch disregarding the left branch.
else_type = full_context_else_type
Expand Down

0 comments on commit 84d38f5

Please sign in to comment.