@@ -48,12 +48,6 @@ def infer_numpy_attribute(
48
48
return extracted_node .infer (context = context )
49
49
50
50
51
- # TODO: Deprecate and remove this function
52
- def infer_numpy_member (src , node , context : InferenceContext | None = None ):
53
- node = extract_node (src )
54
- return node .infer (context = context )
55
-
56
-
57
51
def _is_a_numpy_module (node : Name ) -> bool :
58
52
"""
59
53
Returns True if the node is a representation of a numpy module.
@@ -96,25 +90,3 @@ def attribute_name_looks_like_numpy_member(
96
90
and isinstance (node .expr , Name )
97
91
and _is_a_numpy_module (node .expr )
98
92
)
99
-
100
-
101
- # TODO: Deprecate and remove this function
102
- def name_looks_like_numpy_member (member_name : str , node : Name ) -> bool :
103
- """
104
- Returns True if the Name is a member of numpy whose
105
- name is member_name.
106
- """
107
- return node .name == member_name and node .root ().name .startswith ("numpy" )
108
-
109
-
110
- # TODO: Deprecate and remove this function
111
- def attribute_looks_like_numpy_member (member_name : str , node : Attribute ) -> bool :
112
- """
113
- Returns True if the Attribute is a member of numpy whose
114
- name is member_name.
115
- """
116
- return (
117
- node .attrname == member_name
118
- and isinstance (node .expr , Name )
119
- and _is_a_numpy_module (node .expr )
120
- )
0 commit comments