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: Remove Meta from Model #215

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Conversation

last-partizan
Copy link

Pyright 1.1.339 enabled reportIncompatibleVariableOverride=true as part of new default "standard" mode.

https://github.com/microsoft/pyright/releases/tag/1.1.339

This leads to

error: "Meta" overrides symbol of same name in class "Model"

At runtime, models do not have Meta if it's not defined, so it's safe to remove it.

Pyright 1.1.339 enabled reportIncompatibleVariableOverride=true as part of
new default "standard" mode.

https://github.com/microsoft/pyright/releases/tag/1.1.339

This leads to

> error: "Meta" overrides symbol of same name in class "Model"

At runtime, models do not have `Meta` if it's not defined, so it's safe to remove it.
@last-partizan
Copy link
Author

This still leaves the problem of inheriting from abstract models, but probably we cannot fix it at type stubs level.

Copy link
Owner

@sbdchd sbdchd left a comment

Choose a reason for hiding this comment

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

Thanks!

@kodiakhq kodiakhq bot merged commit 6c52bd8 into sbdchd:main Dec 7, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants