Skip to content

Commit b871eff

Browse files
committed
comment
1 parent ff16c93 commit b871eff

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

mypy/checker.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6952,11 +6952,11 @@ def refine_identity_comparison_expression(
69526952
type_targets.append((i, TypeRange(expr_type, is_upper_bound=False)))
69536953

69546954
# print = lambda *a: None
6955-
print()
6956-
print("operands", operands)
6957-
print("operand_types", operand_types)
6958-
print("operator_specific_targets", operator_specific_targets)
6959-
print("type_targets", type_targets)
6955+
# print()
6956+
# print("operands", operands)
6957+
# print("operand_types", operand_types)
6958+
# print("operator_specific_targets", operator_specific_targets)
6959+
# print("type_targets", type_targets)
69606960

69616961
partial_type_maps = []
69626962

@@ -6971,8 +6971,8 @@ def refine_identity_comparison_expression(
69716971
if_map, else_map = conditional_types_to_typemaps(
69726972
operands[i], *conditional_types(expr_type, targets)
69736973
)
6974-
print("ooo if_map", if_map)
6975-
print("ooo else_map", else_map)
6974+
# print("ooo if_map", if_map)
6975+
# print("ooo else_map", else_map)
69766976
partial_type_maps.append((if_map, else_map))
69776977

69786978
if type_targets:
@@ -6987,14 +6987,14 @@ def refine_identity_comparison_expression(
69876987
)
69886988
if if_map:
69896989
else_map = {}
6990-
print("ttt targets", targets)
6991-
print("ttt if_map", if_map)
6992-
print("ttt else_map", else_map)
6990+
# print("ttt targets", targets)
6991+
# print("ttt if_map", if_map)
6992+
# print("ttt else_map", else_map)
69936993
partial_type_maps.append((if_map, else_map))
69946994

69956995
final_if_map, final_else_map = reduce_conditional_maps(partial_type_maps)
6996-
print("final_if_map", final_if_map)
6997-
print("final_else_map", final_else_map)
6996+
# print("final_if_map", final_if_map)
6997+
# print("final_else_map", final_else_map)
69986998
return final_if_map, final_else_map
69996999

70007000

@@ -8703,7 +8703,7 @@ def is_singleton_value(t: Type) -> bool:
87038703
t = get_proper_type(t)
87048704
# TODO: check the type object thing
87058705
ret = isinstance(t, LiteralType) or t.is_singleton_type() or (isinstance(t, CallableType) and t.is_type_obj())
8706-
print("!!!", t, type(t), ret)
8706+
# print("!!!", t, type(t), ret)
87078707
return ret
87088708

87098709

0 commit comments

Comments
 (0)