Skip to content

Create CodeSlot TypedDict #611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 22, 2023
Merged

Conversation

raman325
Copy link
Contributor

No description provided.

@raman325 raman325 changed the title Create UserCode TypedDict Create CodeSlot TypedDict Mar 22, 2023
class CodeSlot(TypedDict, total=False):
"""Represent a code slot."""

code_slot: int # required
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should start marking required items with Required.

from typing_extensions import Required

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressing this next: #590

Trying to keep it tight in these individual PRs so I can do a comprehensive review

@raman325 raman325 merged commit 2e61075 into home-assistant-libs:master Mar 22, 2023
@raman325 raman325 deleted the usercode branch March 22, 2023 15:12
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.

2 participants