test_ok2/src/pytest
Ran Benita f2d65c85f4 code: export ExceptionInfo for typing purposes
This type is most prominent in `pytest.raises` and we should allow to
refer to it by a public name.

The type is not in a perfectly "exposable" state. In particular:

- The `traceback` property with type `Traceback` which is derived from
  the `py.code` API and exposes a bunch more types transitively. This
  stuff is *not* exported and probably won't be.

- The `getrepr` method which probably should be private.

But they're already used in the wild so no point in just hiding them
now.

The __init__ API is hidden -- the public API for this are the `from_*`
classmethods.
2021-03-13 15:59:44 +02:00
..
__init__.py code: export ExceptionInfo for typing purposes 2021-03-13 15:59:44 +02:00
__main__.py Format docstrings in a consistent style 2020-08-01 17:14:37 +03:00
collect.py Reintroduce warnings postponed in 6.0 (#7637) 2020-08-22 11:17:50 -03:00
py.typed Publish our types 2020-07-04 13:18:15 +03:00