Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothiraldan committed Dec 9, 2024
1 parent c3590ce commit 754e9b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/core/ops/opik_trace/opik_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@


def wrap_dict(key_name, data):
""" Make sure that the input data is a dict
"""
"""Make sure that the input data is a dict"""
if not isinstance(data, dict):
return {key_name: data}

return data


def wrap_metadata(metadata, **kwargs):
""" Add common metatada to all Traces and Spans
"""
"""Add common metatada to all Traces and Spans"""
metadata["created_from"] = "opik"

metadata.update(kwargs)
Expand Down

0 comments on commit 754e9b2

Please sign in to comment.