Skip to content

chore: annotation for ddtrace.internal.telemetry.writer.TelemetryWriter#18043

Closed
jonathandung wants to merge 4 commits into
DataDog:mainfrom
jonathandung:patch-1
Closed

chore: annotation for ddtrace.internal.telemetry.writer.TelemetryWriter#18043
jonathandung wants to merge 4 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
@emmettbutler emmettbutler changed the title Fix annotation for _logs attribute of ddtrace.internal.telemetry.writer.TelemetryWriter in __init__ method chore: annotation for ddtrace.internal.telemetry.writer.TelemetryWriter May 14, 2026
@emmettbutler emmettbutler added the changelog/no-changelog A changelog entry is not required for this PR. label May 14, 2026

@emmettbutler emmettbutler left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution

@github-actions github-actions Bot added the stale label Jun 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed after a period of inactivity.
After this much time, it will likely be easier to open a new pull request with the
same changes than to update this one from the base branch. Please comment or reopen
if you think this pull request was closed in error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog A changelog entry is not required for this PR. stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants