-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Bug] Artifact schemas are inferred to be incorrect types #10442
Comments
Thanks for reaching out @nakamichiworks ! We use $ mypy script.py
Success: no issues found in 1 source file Could this be an issue with |
Sorry I didn't notice the difference between mypy and pyright. I will look into the difference between the two type checkers in more detail. That said, my proposal in #10443 can satisfy both mypy and pyright. |
Thanks for that info @nakamichiworks -- just let us know what you find out in relation to the difference between We can have one of our engineers take a look at your proposed change in #10443 and see what they think too. |
@nakamichiworks thank you for opening this and for for linking the mypy docs! Your proposed change looks good 👍 |
Is this a new bug in dbt-core?
Current Behavior
I want to use
WritableManifest
class to parse and analyzemanifest.json
of my dbt projects.However, code editor (vscode) and associated type checker (pyright) incorrectly infer the type of
WritableManifest
to beVersionedSchema
, which means that code completion does not work for the fields of the class.Expected Behavior
Instances of
WritableManifest
should be inferred to beWritableManifest
type.Steps To Reproduce
See the code snippet above.
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
Not relevant for this issue.
Additional Context
No response
The text was updated successfully, but these errors were encountered: