Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ __init__
Method
__init__
src/_pytest/_code/code.py:65–66 ·
view source on GitHub ↗
(self, obj: CodeType)
Source
from the content-addressed store, hash-verified
63
__slots__ = (
"raw"
,)
64
65
def
__init__(self, obj: CodeType) -> None:
66
self.raw = obj
67
68
@classmethod
69
def
from_function(cls, obj: object) ->
"Code"
:
Callers
1
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected