-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Add typing to data_structures/heap/heap_generic.py #7044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
self.arr: list = list() | ||
# Stores indexes of each item for supporting updates and deletion. | ||
self.pos_map = {} | ||
self.pos_map: dict = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are really not needed. Both Python and mypy are able to figure this out without hinting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i got an error in pipeline without adding this: https://results.pre-commit.ci/run/github/63476337/1665575464.hZt5fgARRZacJLt5kikIdg @cclauss
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cclauss if you are satisfied, can you please approve? i cannot open more PRs in the project since i have mutliple open - #7043 (comment)
requesting review if someone can please take a look. thanks in advance! |
@cclauss can you please add hacktoberfest-accepted label? |
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.