Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ hasinit
Function
hasinit
src/_pytest/python.py:854–858 ·
view source on GitHub ↗
(obj: object)
Source
from the content-addressed store, hash-verified
852
853
854
def
hasinit(obj: object) -> bool:
855
init: object = getattr(obj,
"__init__"
, None)
856
if
init:
857
return
init != object.__init__
858
return
False
859
860
861
def
hasnew(obj: object) -> bool:
Callers
1
collect
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected