MCPcopy Create free account
hub / github.com/pytest-dev/pytest / __init__

Method __init__

src/_pytest/python_api.py:80–86  ·  view source on GitHub ↗
(self, expected, rel=None, abs=None, nan_ok: bool = False)

Source from the content-addressed store, hash-verified

78 __array_priority__ = 100
79
80 def __init__(self, expected, rel=None, abs=None, nan_ok: bool = False) -> None:
81 __tracebackhide__ = True
82 self.expected = expected
83 self.abs = abs
84 self.rel = rel
85 self.nan_ok = nan_ok
86 self._check_type()
87
88 def __repr__(self) -> str:
89 raise NotImplementedError

Callers

nothing calls this directly

Calls 1

_check_typeMethod · 0.95

Tested by

no test coverage detected