[Enhancement] Add type ints in several files (#2020)
* [Enhance] Add type ints in these files:
'base_module.py', 'checkpoint.py',
'default_constructor.py',
'dist_utils.py', 'fp16_utils.py',
'log_buffer.py', 'priority.py'.
* Fixed all the inappropriate type hints.
Removed the return type of __init__ funcs.
* Fixed type hint.
* Added type hints in `dist_utils.py` and `log_buffer.py`.
* Remove unnecessary import.
* minor fix
Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Showing
Please register or sign in to comment