Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/executing/__init__.py: 71%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2Get information about what a frame is currently doing. Typical usage:
4 import executing
6 node = executing.Source.executing(frame).node
7 # node will be an AST node or None
8"""
10from collections import namedtuple
11_VersionInfo = namedtuple('_VersionInfo', ('major', 'minor', 'micro'))
12from .executing import Source, Executing, only, NotOneValueFound, cache, future_flags
14from ._pytest_utils import is_pytest_compatible
16try:
17 from .version import __version__ # type: ignore[import]
18 if "dev" in __version__:
19 raise ValueError
20except Exception:
21 # version.py is auto-generated with the git tag when building
22 __version__ = "???"
23 __version_info__ = _VersionInfo(-1, -1, -1)
24else:
25 __version_info__ = _VersionInfo(*map(int, __version__.split('.')))
28__all__ = ["Source","is_pytest_compatible"]