Skip to content

Add functools._make_key #5370

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

Merged
merged 7 commits into from
May 8, 2021
Merged

Add functools._make_key #5370

merged 7 commits into from
May 8, 2021

Conversation

wiseaidev
Copy link
Contributor

@wiseaidev wiseaidev commented May 7, 2021

Signed-off-by: Harmouch101 mahmoudddharmouchhh@gmail.com

Fixed #5368

Please refer to the python implementation here.

@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2021

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
Copy link
Collaborator

srittau commented May 7, 2021

Apart from the error found by CI: Please use built-in generics (list etc.) instead of importing from typing.

@wiseaidev wiseaidev force-pushed the add-make-key branch 2 times, most recently from 8def030 to df9a807 Compare May 7, 2021 18:53
@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2021

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2021

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@wiseaidev wiseaidev force-pushed the add-make-key branch 2 times, most recently from 74176e3 to ff64a13 Compare May 7, 2021 19:46
Signed-off-by: Harmouch101 <mahmoudddharmouchhh@gmail.com>
@Akuli
Copy link
Collaborator

Akuli commented May 7, 2021

When we are done with the reviews, you need to run black and isort (or ask me to run them).

Also, don't squash the commits or commit with --amend. We prefer multiple separate commits, so that it's easier to see what is happening. When we merge the pull request, they are combined into a single commit anyway.

@wiseaidev
Copy link
Contributor Author

Alright!

Signed-off-by: Harmouch101 <mahmoudddharmouchhh@gmail.com>
@wiseaidev
Copy link
Contributor Author

@Akuli, Everything has changed as intended. Ready to trigger Github Actions! Let's goooooo.

Signed-off-by: Harmouch101 <mahmoudddharmouchhh@gmail.com>
Copy link
Collaborator

@Akuli Akuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should help with the errors. Like I said, you will also need to run black and isort to get rid of their errors.

…ng module

Signed-off-by: Harmouch101 <mahmoudddharmouchhh@gmail.com>
@Akuli
Copy link
Collaborator

Akuli commented May 7, 2021

Seems like you need to isort again

Signed-off-by: Harmouch101 <mahmoudddharmouchhh@gmail.com>
@wiseaidev
Copy link
Contributor Author

@Akuli, Waiting for your response...

wiseaidev added 2 commits May 8, 2021 22:14
Signed-off-by: Harmouch101 <mahmoudddharmouchhh@gmail.com>
…st on functools

Signed-off-by: Harmouch101 <mahmoudddharmouchhh@gmail.com>
@wiseaidev
Copy link
Contributor Author

I have added the hashvalue property discovered using the following cmd:

$ stubtest functools --concise --custom-typeshed-dir .
functools._HashedSeq.hashvalue is not present in stub

@wiseaidev
Copy link
Contributor Author

@hauntsaninja, can you trigger the workflows one more time cause I've added a couple of chnges?

@Akuli Akuli merged commit 0804505 into python:master May 8, 2021
@wiseaidev wiseaidev deleted the add-make-key branch May 17, 2021 22:30
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.

Module 'functools' has no attribute '_make_key'
4 participants