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

Method prop

testing/test_compat.py:199–202  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

197 class Class:
198 @cached_property
199 def prop(self) -> int:
200 nonlocal ncalls
201 ncalls += 1
202 return ncalls
203
204 c1 = Class()
205 assert ncalls == 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected