Skip to content

Commit f7b689c

Browse files
committed
remove now unnecessary code added in the meantime
1 parent b2f50ff commit f7b689c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

mypy/checkexpr.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2940,8 +2940,6 @@ def infer_overload_return_type(
29402940
# check for ambiguity due to 'Any' below.
29412941
if not args_contain_any:
29422942
self.chk.store_types(m)
2943-
if isinstance(infer_type, ProperType) and isinstance(infer_type, CallableType):
2944-
self.chk.warn_deprecated(infer_type.definition, context)
29452943
return ret_type, infer_type
29462944
p_infer_type = get_proper_type(infer_type)
29472945
if isinstance(p_infer_type, CallableType):
@@ -2978,11 +2976,6 @@ def infer_overload_return_type(
29782976
else:
29792977
# Success! No ambiguity; return the first match.
29802978
self.chk.store_types(type_maps[0])
2981-
inferred_callable = inferred_types[0]
2982-
if isinstance(inferred_callable, ProperType) and isinstance(
2983-
inferred_callable, CallableType
2984-
):
2985-
self.chk.warn_deprecated(inferred_callable.definition, context)
29862979
return return_types[0], inferred_types[0]
29872980

29882981
def overload_erased_call_targets(

0 commit comments

Comments
 (0)