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

Attempt at automatic typing for basix #526

Merged
merged 15 commits into from
Jun 23, 2022
Merged

Attempt at automatic typing for basix #526

merged 15 commits into from
Jun 23, 2022

Conversation

jhale
Copy link
Member

@jhale jhale commented Jun 7, 2022

This was created using mypy's automatic stub creator. I then replaced np.ndarray with npt.NDArray by automatic substitution.

In practice though it did not work in my nvim/pyright setup.

Can anyone else try it? It's not clear to me how this should be automated/updated either.

@jhale jhale requested a review from jorgensd June 7, 2022 17:30
@mscroggs
Copy link
Member

I'm going to merge this, as having these types set is good and we can update manually for now. I've opened an issue for automating this: #536

@mscroggs mscroggs merged commit a1c50aa into main Jun 23, 2022
@mscroggs mscroggs deleted the jhale/automatic-typing branch June 23, 2022 09:33
@garth-wells
Copy link
Member

@jhale what's the command for generating the stubs?

@mscroggs
Copy link
Member

mscroggs commented Jan 4, 2024

stubgen -m basix._basixcpp I think

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.

3 participants