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(prqlc-python): add missing type annotation for pl_to_prql #4588

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

kgutwin
Copy link
Collaborator

@kgutwin kgutwin commented Jun 10, 2024

Forgot the type annotation for the latest binding. I wonder if it's possible to do an automated check on this...

@kgutwin kgutwin enabled auto-merge (squash) June 10, 2024 21:20
@kgutwin kgutwin merged commit 745f01b into PRQL:main Jun 10, 2024
37 checks passed
@max-sixty
Copy link
Member

Yes we could add a mypy strict confirm...

@kgutwin
Copy link
Collaborator Author

kgutwin commented Jun 10, 2024

That would be a good first step -- although what would have been needed to have caught this flub is cross-checking between the pyo3 output and the .pyi type stub file. Mypy can't check that because it trusts the .pyi type stubs.

It looks like pyo3 is already tracking this over at PyO3/pyo3#2454 ...

@max-sixty
Copy link
Member

OIC — good point — so mypy checks the static python code. Makes sense.

And I notice we already have strict = true...

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.

None yet

2 participants