Skip to content
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

Fix get_with_service_details typings #355

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

otaviojacobi
Copy link
Contributor

Change-type: patch

@@ -157,6 +158,10 @@ class TypeApplication(TypedDict):
can_use__application_as_host: ReverseNavigationResource[ApplicationHostedOnApplication]


class TypeApplicationWithDeviceServiceDetails(TypeApplication):
owns__device: List["TypeDeviceWithServices"] # type: ignore
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FWIW this is necessary as by default Python type hints won't allow overriding properties on TypedDicts

@otaviojacobi otaviojacobi force-pushed the improves-service-running-types branch 2 times, most recently from fe4ea4b to 2146970 Compare December 15, 2023 13:41
@otaviojacobi otaviojacobi force-pushed the improves-service-running-types branch 3 times, most recently from 73a6529 to ac8c589 Compare December 15, 2023 13:47
@otaviojacobi otaviojacobi changed the title Fixes get_with_service_details typings Fix get_with_service_details typings Dec 15, 2023
@otaviojacobi otaviojacobi force-pushed the improves-service-running-types branch from ac8c589 to b8f97b2 Compare December 15, 2023 14:33
@otaviojacobi otaviojacobi force-pushed the improves-service-running-types branch from b8f97b2 to 9077f9d Compare December 15, 2023 14:34
@flowzone-app flowzone-app bot merged commit ef3dad3 into master Dec 18, 2023
53 checks passed
@flowzone-app flowzone-app bot deleted the improves-service-running-types branch December 18, 2023 17:32
Copy link
Contributor

@fisehara fisehara left a comment

Choose a reason for hiding this comment

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

👍 Thanks for improving the typings.

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