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

Create py.typed #346

Merged
merged 5 commits into from
Oct 14, 2024
Merged

Create py.typed #346

merged 5 commits into from
Oct 14, 2024

Conversation

Andrew-S-Rosen
Copy link
Member

@Andrew-S-Rosen Andrew-S-Rosen commented Aug 17, 2024

As recommended in pep 0561, a blank py.typed marker should be included when type hints are used so downstream codes can type check with mypy and similar tools. There aren't many type hints in this code, but there are some.

I also removed the reliance on numpy==1.26.4 in the test suite since this caused other issues due to materialsproject/pymatgen#3990.

Andrew-S-Rosen and others added 4 commits August 16, 2024 23:13
As recommended in [pep 0561](https://peps.python.org/pep-0561/), a blank `py.typed` marker should be included when type hints are used so downstream codes can type check with `mypy` and similar tools.
@Andrew-S-Rosen
Copy link
Member Author

Andrew-S-Rosen commented Aug 17, 2024

@shyuep: Any idea why a Mac build would fail but Ubuntu would pass? The error seems unrelated to this PR by the way --- but I'm stumped.

Edit: Passes now.

@shyuep shyuep merged commit 33e197e into materialsproject:master Oct 14, 2024
8 checks passed
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