Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
861
def
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
collect
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected