MCPcopy
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
854def hasinit(obj: object) -> bool:
855 init: object = getattr(obj, "__init__", None)
856 if init:
857 return init != object.__init__
858 return False
859
860
861def hasnew(obj: object) -> bool:

Callers 1

collectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected