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

Publish MonkeyPatch for typing #7453

Closed
wants to merge 1 commit into from

Commits on Jul 6, 2020

  1. Publish MonkeyPatch for typing

    This builds on the work done in 2bcad38
    to add `MonkeyPatch` to pytest's public API. This will allow users of
    pytest to annotation their tests like
    
        def test_some_code(monkeypatch: MonkeyPatch) -> None:
            ...
    
    To make this possible, the `monkeypatch` module can't import `pytest`
    anymore. Instead it will import `PytestWarning` directly from
    `_pytest.warning_types`.
    dirn committed Jul 6, 2020
    Configuration menu
    Copy the full SHA
    20e7a5b View commit details
    Browse the repository at this point in the history