MCPcopy
hub / github.com/pytest-dev/pytest / __call__

Method __call__

src/_pytest/mark/__init__.py:200–204  ·  view source on GitHub ↗
(self, subname: str, /, **kwargs: str | int | bool | None)

Source from the content-addressed store, hash-verified

198 return cls(mapped_names)
199
200 def __call__(self, subname: str, /, **kwargs: str | int | bool | None) -> bool:
201 if kwargs:
202 raise UsageError("Keyword expressions do not support call parameters.")
203 subname = subname.lower()
204 return any(subname in name.lower() for name in self._names)
205
206
207def deselect_by_keyword(items: list[Item], config: Config) -> None:

Callers

nothing calls this directly

Calls 1

UsageErrorClass · 0.90

Tested by

no test coverage detected