-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
More type annotations, fix some typing bugs #7358
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
Not needed since update from mypy 0.770 -> 0.780.
Also switch to using ExceptionRepr instead of `Union[ReprExceptionInfo, ExceptionChainRepr]` which is somewhat annoying and less future proof.
These errors are found using a typed version of py.path.local.
Fixes: src/_pytest/config/__init__.py:1071: error: Argument 1 to "Version" has incompatible type "Union[str, List[str]]"; expected "str" [arg-type]
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.
Great, thanks!
Thanks @nicoddemus / @bluetech Im a bit busy for a day or two and then il revisit my other PR; this is likely merged by then and il bring it in. I need to revisit as to some information Ran has mentioned. |
Sure thing, take your time. 👍 |
Please see the commits, but here's a summary:
MonkeyPatch
pytest_keyboard_interrupt
andpytest_internalerror
hookspy.path.local
packaging