Skip to content

Commit

Permalink
use isinstance tuple syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Sep 19, 2022
1 parent d18e217 commit d0d7260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata-ingestion/src/datahub/utilities/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def process(self, raw_props: Dict[str, Any]) -> Dict[str, Any]:
operation_type = Constants.ADD_TERM_OPERATION

if operation:
if isinstance(operation, str) or isinstance(operation, list):
if isinstance(operation, (str, list)):
operations_value_set = operations_map.get(
operation_type, set()
)
Expand Down

0 comments on commit d0d7260

Please sign in to comment.