-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Add support for future.utils.with_metaclass #7210
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
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.
A test might be good, but otherwise LGTM.
Ah yeah, I missed the tests for |
So this is going to require stubs for |
For the purposes of mypy tests, you can probably put a basic stub in mypy/test-data somewhere with just what you need. |
There is also a merge conflict now. |
No worries. It’s a very simple PR. I’ve just about got the stubs ready for
typeshed, so I’ll be revisiting this soon.
…On Thu, Aug 8, 2019 at 10:44 AM Ivan Levkivskyi ***@***.***> wrote:
There is also a merge conflict now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7210?email_source=notifications&email_token=AAAPOE2SM3FKWTXDBY5IKN3QDRLQTA5CNFSM4IDRQPOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD34MG7I#issuecomment-519619453>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAPOE2REG6HDOQECYXHF43QDRLQTANCNFSM4IDRQPOA>
.
|
Same function signature and basic behavior as six.with_metaclass
27b07de
to
2721ae4
Compare
Added tests. This should be all ready to go! |
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.
TBH, this is a bit too much tests :-) Anyway, LGTM!
This util function has the same signature and basic behavior as
six.with_metaclass
.Fixes #7193.