Skip to content

Commit 4dbd107

Browse files
committed
comment
1 parent cdbd737 commit 4dbd107

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
@@ -6960,11 +6960,11 @@ def refine_identity_comparison_expression(
69606960
type_targets.append((i, TypeRange(expr_type, is_upper_bound=False)))
69616961

69626962
# print = lambda *a: None
6963-
print()
6964-
print("operands", operands)
6965-
print("operand_types", operand_types)
6966-
print("operator_specific_targets", operator_specific_targets)
6967-
print("type_targets", type_targets)
6963+
# print()
6964+
# print("operands", operands)
6965+
# print("operand_types", operand_types)
6966+
# print("operator_specific_targets", operator_specific_targets)
6967+
# print("type_targets", type_targets)
69686968

69696969
partial_type_maps = []
69706970

@@ -6979,8 +6979,8 @@ def refine_identity_comparison_expression(
69796979
if_map, else_map = conditional_types_to_typemaps(
69806980
operands[i], *conditional_types(expr_type, targets)
69816981
)
6982-
print("ooo if_map", if_map)
6983-
print("ooo else_map", else_map)
6982+
# print("ooo if_map", if_map)
6983+
# print("ooo else_map", else_map)
69846984
partial_type_maps.append((if_map, else_map))
69856985

69866986
if type_targets:
@@ -6995,14 +6995,14 @@ def refine_identity_comparison_expression(
69956995
)
69966996
if if_map:
69976997
else_map = {}
6998-
print("ttt targets", targets)
6999-
print("ttt if_map", if_map)
7000-
print("ttt else_map", else_map)
6998+
# print("ttt targets", targets)
6999+
# print("ttt if_map", if_map)
7000+
# print("ttt else_map", else_map)
70017001
partial_type_maps.append((if_map, else_map))
70027002

70037003
final_if_map, final_else_map = reduce_conditional_maps(partial_type_maps)
7004-
print("final_if_map", final_if_map)
7005-
print("final_else_map", final_else_map)
7004+
# print("final_if_map", final_if_map)
7005+
# print("final_else_map", final_else_map)
70067006
return final_if_map, final_else_map
70077007

70087008
def refine_away_none_in_comparison(
@@ -8601,7 +8601,7 @@ def is_singleton_value(t: Type) -> bool:
86018601
t = get_proper_type(t)
86028602
# TODO: check the type object thing
86038603
ret = isinstance(t, LiteralType) or t.is_singleton_type() or (isinstance(t, CallableType) and t.is_type_obj())
8604-
print("!!!", t, type(t), ret)
8604+
# print("!!!", t, type(t), ret)
86058605
return ret
86068606

86078607

0 commit comments

Comments
 (0)