Skip to content

Commit

Permalink
fix: removed duplicated function after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lukarade committed May 1, 2024
1 parent 56e6ff9 commit 30daab9
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,33 +237,6 @@ def compare_parameters(function: FunctionScope, call: astroid.Call) -> bool:
else:
return True

@staticmethod
def merge_dicts(
d1: dict[str, list[ReferenceNode]],
d2: dict[str, list[ReferenceNode]],
) -> dict[str, list[ReferenceNode]]:
"""Merge two dicts of lists of ReferenceNodes.
Parameters
----------
d1 : dict[str, list[ReferenceNode]]
The first dict.
d2 : dict[str, list[ReferenceNode]]
The second dict.
Returns
-------
d3 : dict[str, list[ReferenceNode]]
The merged dict.
"""
d3 = d1.copy()
for key, value in d2.items():
if key in d3:
d3[key].extend(value)
else:
d3[key] = value
return d3

def _find_call_references(
self,
call_reference: Reference,
Expand Down

0 comments on commit 30daab9

Please sign in to comment.