Skip to content

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

Draft
sveneberth wants to merge 4 commits into
viur-framework:developfrom
sveneberth:feat/skeleton_type
Draft

feat: Implement TypeVar for Skeleton and make SkeletonInstance Generic#1412
sveneberth wants to merge 4 commits into
viur-framework:developfrom
sveneberth:feat/skeleton_type

Conversation

@sveneberth
Copy link
Copy Markdown
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
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.

2 participants