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

Type hints for literal string kwargs #2247

Merged
merged 6 commits into from Oct 6, 2021
Merged

Type hints for literal string kwargs #2247

merged 6 commits into from Oct 6, 2021

Conversation

janosh
Copy link
Member

@janosh janosh commented Sep 11, 2021

Follow up to #2241. Here are a few more examples where Literal type hints make sense. I think there are ~80 more places throughout pymatgen. Happy to address more of them in this PR if you guys will accept.

@coveralls
Copy link

coveralls commented Sep 11, 2021

Coverage Status

Coverage decreased (-0.6%) to 83.134% when pulling 069a01a on janosh:literal-types into 2926a20 on materialsproject:master.

@mkhorton
Copy link
Member

I think that would be great, no objections from me as long as any mypy failures are also dealt with, thank you!

@janosh janosh marked this pull request as ready for review September 14, 2021 10:32
@mkhorton
Copy link
Member

mkhorton commented Oct 6, 2021

This is great, thank you!

@mkhorton mkhorton merged commit 05c0b2b into materialsproject:master Oct 6, 2021
@janosh janosh deleted the literal-types branch October 6, 2021 19:41
@janosh janosh mentioned this pull request Oct 13, 2021
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

3 participants