File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments