Currently pluggy._CallOutcome is implied to be part of the internal api by the leading _.
In practice it is used by hookwrappers.
An example:
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
def pytest_runtest_makereport(item, call):
outcome = yield
rep = outcome.get_result()
...
The outcome is accessed directly by the user.
Therefore I propose we expose it correct in plugg.__all__ and expose it in the api reference.
Currently
pluggy._CallOutcomeis implied to be part of the internal api by the leading_.In practice it is used by
hookwrappers.An example:
The
outcomeis accessed directly by the user.Therefore I propose we expose it correct in
plugg.__all__and expose it in the api reference.