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

Method __init__

src/_pytest/mark/expression.py:177–178  ·  view source on GitHub ↗
(self, matcher: Callable[[str], bool])

Source from the content-addressed store, hash-verified

175 """Adapts a matcher function to a locals mapping as required by eval()."""
176
177 def __init__(self, matcher: Callable[[str], bool]) -> None:
178 self.matcher = matcher
179
180 def __getitem__(self, key: str) -> bool:
181 return self.matcher(key[len(IDENT_PREFIX) :])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected