Skip to content

Commit

Permalink
Patched /tmp/tmpgmapi_4_/patchwork/steps/Combine/Combine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
patched.codes[bot] committed Sep 16, 2024
1 parent 2dd794c commit 080c7cf
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions patchwork/steps/Combine/Combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@

class Combine(Step):
def __init__(self, inputs):
"""Initialize the CombineInputs class.
Args:
inputs (dict): A dictionary containing the required input data.
Returns:
None
Raises:
"""Merges two JSON objects or lists of JSON objects.

Args:
self: The instance of the class containing base and update attributes.

Returns:
dict or list: The merged result. If both inputs are dictionaries, returns a merged dictionary.
If both inputs are lists, returns a list of merged dictionaries. If one input is a list and
the other is a dictionary, returns a list where each element of the list is merged with the dictionary.
"""
ValueError: If any required keys are missing from the inputs dictionary.
"""
super().__init__(inputs)
missing_keys = CombineInputs.__required_keys__.difference(inputs.keys())
if len(missing_keys) > 0:
Expand Down

0 comments on commit 080c7cf

Please sign in to comment.