MCPcopy 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_lineMethod · 0.80
_get_summary_linesMethod · 0.80
test_staticmethodMethod · 0.80
test_classmethodMethod · 0.80
test_propertyMethod · 0.80
test_async_annotationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected