Skip to content

Commit 7fed340

Browse files
author
brandon
committed
expr
1 parent 36426cd commit 7fed340

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

rattr/analyser/function.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -157,22 +157,16 @@ def visit_Subscript(self, node: ast.Subscript) -> None:
157157
def visit_Call(self, node: ast.Call) -> None:
158158
"""Visit ast.Call(func, args, keywords)."""
159159
config = Config()
160+
_, fullname = self.get_and_verify_name(node, ast.Load())
161+
162+
if _ == "product_attr_is_defined":
163+
breakpoint()
160164

161165
if (analyser := custom_analyser_for_target(node, self.context)) is not None:
162166
return self.visit_call_to_target_with_custom_analyser(node, analyser)
163167

164-
_, fullname = self.get_and_verify_name(node, ast.Load())
165168
target = self.context.get_call_target(fullname, node, warn=True)
166169

167-
if (
168-
getattr(self.ast, "name", None)
169-
== "healthcare_utilities_prof_technical_sector"
170-
and _ == "primary_exp_cls"
171-
):
172-
print(f">>> {fullname}")
173-
print(f">>> {target}")
174-
breakpoint()
175-
176170
# NOTE
177171
# Add the call to the IR and manually visit the arguments, but not `node.func`
178172
# as it will register an incorrect "gets"

0 commit comments

Comments
 (0)