Skip to content

misleading type annotation in JsonModel #472

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

Closed
wants to merge 1 commit into from
Closed

Conversation

Vioshim
Copy link

@Vioshim Vioshim commented Feb 2, 2023

It's expected to obtain an element that matches the original class, indicating it's a JsonModel makes the type hint ignore the new class it is inheritating currently

It's expected to obtain an element that matches the original class, indicating it's a JsonModel makes the type hint ignore the new class it is inheritating currently
@marianhlavac
Copy link
Contributor

I'd suggest maintainers of this repository to not accept this pull request.

Not only it's incomplete (I don't understand why annotation should be removed only on JsonModel and not on HashModel, for example), but also incorrect (this removes the typing and doesn't solve the issue).

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