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

typing: resultlog, pytester, longrepr #7601

Merged
merged 3 commits into from Aug 4, 2020

Conversation

bluetech
Copy link
Member

@bluetech bluetech commented Aug 1, 2020

The first two commits are in service of the third, which type annotates the TestReport/CollectRepor (and related) longrepr fields. That would have caught #7559.

The type of longrepr is a union with 5 possibilities, which is not great IMO. Perhaps one day we can clean it up, at least this should make it a little easier.

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Thanks @bluetech!

The type of longrepr is a union with 5 possibilities, which is not great IMO. Perhaps one day we can clean it up, at least this should make it a little easier.

Thanks! Indeed that's mighty confusing.

@bluetech bluetech merged commit 2bd0d97 into pytest-dev:master Aug 4, 2020
@bluetech bluetech deleted the typing-longrepr branch August 24, 2020 15:06
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.

None yet

2 participants