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

Function hasnew

src/_pytest/python.py:861–865  ·  view source on GitHub ↗
(obj: object)

Source from the content-addressed store, hash-verified

859
860
861def hasnew(obj: object) -> bool:
862 new: object = getattr(obj, "__new__", None)
863 if new:
864 return new != object.__new__
865 return False
866
867
868@final

Callers 1

collectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected