Skip to content

Commit

Permalink
fix return type in common.py:_flatten() (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
andmat900 authored Apr 19, 2024
1 parent ad685dc commit ab75ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etos_lib/eiffel/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def add_span_eiffel_attributes(span: Span, event: EiffelBaseEvent) -> None:
span.set_attribute(SpanAttributes.MESSAGING_MESSAGE_ID, event.meta.event_id)


def _flatten(d: dict, parent_key: str = "", sep: str = ".") -> Iterable[str, str]:
def _flatten(d: dict, parent_key: str = "", sep: str = ".") -> Iterable[tuple[str, str]]:
"""Flatten a dictionary to be compatible with opentelemetry."""
for k, v in d.items():
new_key = parent_key + sep + k if parent_key else k
Expand Down

0 comments on commit ab75ff2

Please sign in to comment.