SIGN IN SIGN UP

[mypy] Add type hints and docstrings to heap.py (#3013)

* Add type hints and docstrings to heap.py

- Add type hints
- Add docstrings
- Add explanatory comments 
- Improve code readability
- Change to use f-string

* Fix import sorting

* fixup! Format Python code with psf/black push

* Fix static type error

* Fix failing test

* Fix type hints

* Add return annotation

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
M
Mark Huang committed
207ac957ef02a5885aeb75728ed257a0d76f9974
Parent: 8f47d9f
Committed by GitHub <noreply@github.com> on 12/26/2020, 3:12:37 AM