-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update type hints in helpers.write_timdex_records_to_json (#96)
* Update type hints in helpers.write_timdex_records_to_json Why these changes are being introduced: * After some refactoring in 07/2022 that added an iterator pattern to Transformer, it looks as though downstream type hints were not updated. * While this did not affect runtime, it made reading the code somewhat confusing to someone new to the codebase. How this addresses that need: * Update the `records` input argument of `helpers.write_timdex_records_to_json()` from `Iterator[TimdexRecord]` to `Transformer` * rename `records` to `transformer_instance`, matching variable names from calling `cli.py` * Add explicit `TimdexRecord` type hint for result of `next(transformer_instance)` Side effects of this change: * None Relevant ticket(s): * None Additional maintenance: * Updated syntax for isort command in Makefile * Based on new results from isort, update import order in helpers.py * update dependencies and revert click workaround * In PR #91, while updating dependencies, `click` and `mypy` had a conflict. * A temporary workaround was put into place that reordered the `click` decorators, but this deviated from other projects. * Now that `click` has updated again, that workaround is no longer needed. * Resolves #92
- Loading branch information
Showing
4 changed files
with
69 additions
and
65 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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