Skip to content

Fix annotation for _logs attribute of ddtrace.internal.telemetry.writer.TelemetryWriter in __init__ method#18043

Open
jonathandung wants to merge 2 commits into
DataDog:mainfrom
jonathandung:patch-1
Open

Fix annotation for _logs attribute of ddtrace.internal.telemetry.writer.TelemetryWriter in __init__ method#18043
jonathandung wants to merge 2 commits into
DataDog:mainfrom
jonathandung:patch-1

Conversation

@jonathandung
Copy link
Copy Markdown

Description

The above attribute is a set of instances of LogData, which subclasses dict and adds a __hash__ method. However, it is annotated as set[dict[str, Any]]. This is incorrect, because dict's are not necessarily hashable and cannot be used as items in a container such as set.

Risks

None

Additional Notes

Parent: python/typeshed#15754

@jonathandung jonathandung requested a review from a team as a code owner May 12, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant