Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ plain
Method
plain
Lib/test/test_decorators.py:308–310 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
306
307
def
test_simple(self):
308
def
plain(x):
309
x.extra =
'Hello'
310
return
x
311
@plain
312
class
C(object):
pass
313
self.assertEqual(C.extra,
'Hello'
)
Callers
7
_get_summary_line
Method · 0.80
_get_summary_lines
Method · 0.80
test_staticmethod
Method · 0.80
test_classmethod
Method · 0.80
test_property
Method · 0.80
test_async_annotation
Method · 0.80
test_async_generator_annotation
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected