Skip to content

SerializationClassTester: skip abstract classes#2960

Open
Luna712 wants to merge 1 commit into
recloudstream:masterfrom
Luna712:patch-3
Open

SerializationClassTester: skip abstract classes#2960
Luna712 wants to merge 1 commit into
recloudstream:masterfrom
Luna712:patch-3

Conversation

@Luna712

@Luna712 Luna712 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Necessary for some such as LibrarySearchResponse and DownloadCached. Using the skip annotation causes it to also skip child classes which we don't want so just skip abstract classes since Instancio can't create an instance of an abstract class: "It is an abstract class and no subtype was provided".

Necessary for some such as LibrarySearchResponse and DownloadCached. Using the skip annotation causes it to also skip child classes which we don't want so just skip abstract classes since Instancio can't create an instance of an abstract class: "It is an abstract class and no subtype was provided".
@fire-light42

Copy link
Copy Markdown
Collaborator

I think we can sidestep the issue by using interfaces on some of these classes, such as DownloadCached.

@Luna712

Luna712 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

Interfaces has the same issue. And personally I would also prefer to not change things to much during the migration if possible but up to you.

@Luna712

Luna712 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

Sorry I just realized I wasn't to clear. An interface would probably work for DownloadCached but I don't think it would for LibrarySearchResponse and thus this would still be needed. I also wanted to avoid changing the actual inheritance during this migration but could if you wanted.

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