Skip to content
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

Update mypy 0.740 -> 0.750 #6307

Merged
merged 1 commit into from
Dec 3, 2019
Merged

Conversation

bluetech
Copy link
Member

@bluetech bluetech commented Dec 2, 2019

Release notes:
https://mypy-lang.blogspot.com/2019/11/mypy-0.html

Can remove existing workarounds, but unfortunately need to add some new ones.

@@ -479,7 +479,7 @@ def from_current(
assert tup[1] is not None, "no current exception"
assert tup[2] is not None, "no current exception"
exc_info = (tup[0], tup[1], tup[2])
return cls.from_exc_info(exc_info, exprinfo)
return ExceptionInfo.from_exc_info(exc_info, exprinfo)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed because it seems now cls is bound to the _E generic which is not compatible with BaseException. Using the type directly "unbounds" it.

@bluetech bluetech merged commit c9ec724 into pytest-dev:features Dec 3, 2019
@bluetech bluetech deleted the mypy-750 branch December 3, 2019 10:14
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