-
Notifications
You must be signed in to change notification settings - Fork 864
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
Improve type annotations for io.lobster.{lobsterenv/outputs}
#3887
Improve type annotations for io.lobster.{lobsterenv/outputs}
#3887
Conversation
io.lobster.lobsterenv
io.lobster.{lobsterenv/outputs}
Signed-off-by: J. George <[email protected]>
@DanielYang59 I think I am fine with this. Thank you! :) One point, however: It is really hard to see the diff on the tests. Can you just make sure everything has been moved and that all tests are still in place? |
Thanks a lot for reviewing! No problem.
I'm pretty sure I didn't touch the actual content of those tests, just splitting acc9a1f. The slight difference in number of lines should be related to imports. |
@DanielYang59 Great! Thank you :). |
No problem, also pinging @janosh for review. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we change the Literal
doc string format to just use pipes? unless someone disagrees with that style?
- (Literal["icoop", "icobi"])
+ ("icoop" | "icobi")
Yep that's a good point (dropping the I believe there will be other violations, in this case are you aware of any IDE functionality to search for something only in code/comment, which would be very useful if we want to search for A similar feature request microsoft/vscode#55832 but didn't seem to get implemented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot @DanielYang59! 👍 super fast to address comments as always 😄
No problem. Thanks for reviewing @JaGeo (hope you had a wonderful vacation) |
I did some search on this, seemingly VS Code doesn't seem to have the feature or from extensions (yet), though there is a related feature request on 2016. The good news being PyCharm does have this functionality (even for the free community version): |
Summary
io.lobster.{lobsterenv/outputs}
.TODOs:
LobsterPy
with the script from Improve types forelectronic_structure.{bandstructure/cohp}
#3873