-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve type hint annotations for
@particle_input
(#2443)
* Improve type hints from decorators.py * Add changelog entry * Update mypy.ini * Update type hint annotations in decorators.py * Update mypy.ini per-file ignores * Minor edits * Fix location of type: ignore comment * Add type hints to particles/test_decorators.py * Update 2443.trivial.rst * Update comments * Update return annotations to be more general * typing.Callable → collections.abc.Callable
- Loading branch information
Showing
4 changed files
with
222 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Improved type hint annotations for `plasmapy.particles.decorators`, | ||
which includes |particle_input|, and the corresponding tests. |
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.