-
Notifications
You must be signed in to change notification settings - Fork 874
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add types annotations for
core.interface
(#3822)
* tweak type and docstring move dunder methods to the top add more types and tweaks relocate more dunder methods to top more types and format tweaks fix type error add types for composition help fix #3792 (comment) reverse compare order for readability Revert "reverse compare order for readability" This reverts commit 05ea23a. Revert "help fix #3792 (comment)" This reverts commit cae7aed. add types for `core.bonds` finish `core.ion` add some types revert non-interface changes * use math.gcd over gcd * use more specific types for ClassVar * more: use more specific types for ClassVar * fix some type errors and comment tweaks * fix mypy errors * enable types: more type errors to fix * fix type errors * fix type errors * fix mypy errors doesn't show locally * revert change in test and convert rotation_axis and plane to tuple * cast plane type to tuple * remove `del` of var name * add and update new type `Tuple3Ints = tuple[int, int, int]` * relocate `Tuple4Ints` to `core.interface` * relocate `Tuple4Ints` * use `Tuple3Floats` * revert usage of assert_allclose * use more meaningful types * fix replacement * Revert "fix replacement" This reverts commit 6b9589a. * revert type aliases in docstring
- Loading branch information
1 parent
5c7889c
commit 65d5379
Showing
32 changed files
with
796 additions
and
667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.