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(
2940
2940
# check for ambiguity due to 'Any' below.
2941
2941
if not args_contain_any :
2942
2942
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 )
2945
2943
return ret_type , infer_type
2946
2944
p_infer_type = get_proper_type (infer_type )
2947
2945
if isinstance (p_infer_type , CallableType ):
@@ -2978,11 +2976,6 @@ def infer_overload_return_type(
2978
2976
else :
2979
2977
# Success! No ambiguity; return the first match.
2980
2978
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 )
2986
2979
return return_types [0 ], inferred_types [0 ]
2987
2980
2988
2981
def overload_erased_call_targets (
You can’t perform that action at this time.
0 commit comments