Skip to content

Add ResponseData to __all__#270

Merged
frenck merged 1 commit into
mainfrom
add-response-data-to-all
Mar 3, 2026
Merged

Add ResponseData to __all__#270
frenck merged 1 commit into
mainfrom
add-response-data-to-all

Conversation

@mdegat01

@mdegat01 mdegat01 commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator

Proposed Changes

In home-assistant/core#164413 I needed to gather results from several APIs at once and then the only method needed for each was to_dict. This meant proper typing would be to use list[ResponseData]. Since it is useful to gather like this at times that type should be added to __all__

@mdegat01 mdegat01 requested a review from agners March 2, 2026 19:57
@mdegat01 mdegat01 added the refactor Improvement of existing code, not introducing new features. label Mar 2, 2026
@mdegat01

mdegat01 commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator Author

@agners one of the very few PRs where I've felt "hm, maybe the chore label fits best" 😆

@frenck frenck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, @mdegat01 👍

../Frenck

                       

Blogging my personal ramblings at frenck.dev

@frenck frenck merged commit 83adfcd into main Mar 3, 2026
12 of 13 checks passed
@frenck frenck deleted the add-response-data-to-all branch March 3, 2026 19:35
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

refactor Improvement of existing code, not introducing new features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants