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

feat: Implement TypeVar for Skeleton and make SkeletonInstance Generic #1412

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

sveneberth
Copy link
Member

This adds the possibility to shows to which Skeleton class a SkeletonInstance belongs.

I've used this in the viur-shop a lot, otherwise it gets very complicated to know which type of Skeleton in meaned
e.g. here: https://github.com/viur-framework/viur-shop/blob/caa2476c41e9b886f7961cdaa84a441dc3eb2c76/src/viur/shop/types/dc_scope.py#L25-L29

This adds the possibility to shows to which `Skeleton` class a
`SkeletonInstance` belongs.

I've used this in the viur-shop a lot, otherwise it gets very
complicated to know which type of Skeleton in meaned
 e.g. here: https://github.com/viur-framework/viur-shop/blob/caa2476c41e9b886f7961cdaa84a441dc3eb2c76/src/viur/shop/types/dc_scope.py#L25-L29
@sveneberth sveneberth added proposal Priority: Low This issue can be considered with enough idle time. refactoring Pull requests that refactor code but do not change its behavior. labels Feb 13, 2025
@sveneberth sveneberth changed the title feat: Implement TypeVar for Skeleton and make SkeletonInstance Generic feat: Implement TypeVar for Skeleton and make SkeletonInstance Generic Feb 13, 2025
@sveneberth sveneberth changed the title feat: Implement TypeVar for Skeleton and make SkeletonInstance Generic feat: Implement TypeVar for Skeleton and make SkeletonInstance Generic Feb 13, 2025
@sveneberth sveneberth marked this pull request as draft February 13, 2025 00:52
@sveneberth sveneberth added this to the ViUR-core v3.8 milestone Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low This issue can be considered with enough idle time. proposal refactoring Pull requests that refactor code but do not change its behavior.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant