Skip to content

Type annotate heapq #1

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

Draft
wants to merge 3 commits into
base: compiled-3.11
Choose a base branch
from

Conversation

Agent-Hellboy
Copy link

@Agent-Hellboy Agent-Hellboy commented Nov 22, 2023

Screenshot from 2023-11-22 23-19-47
I don't have enough expertise with type annotation, adding draft PR to get some feedback on whether I am doing it correctly or not, and some feedback on what should I do for the above errors

e.g for heapq.py:381: error: "Callable[[], tuple[Any, ...] | list[Any]]" has no attribute "__self__" [attr-defined]

callable doesn't have self do we have anything for the bound method in typing or do I need to do anything with Protocol?

@tusharsadhwani
Copy link
Collaborator

Sorry for the delays! I will look over this on the weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants