Skip to content

Update mypy 0.740 -> 0.750#6307

Merged
bluetech merged 1 commit intopytest-dev:featuresfrom
bluetech:mypy-750
Dec 3, 2019
Merged

Update mypy 0.740 -> 0.750#6307
bluetech merged 1 commit intopytest-dev:featuresfrom
bluetech:mypy-750

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.

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