MCPcopy Index your code
hub / github.com/python/cpython / _default_update

Method _default_update

Lib/test/test_functools.py:851–860  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

849
850
851 def _default_update(self):
852 def f[T](a:'This is a new annotation'):
853 """This is a test"""
854 pass
855 f.attr = 'This is also a test'
856 f.__wrapped__ = "This is a bald faced lie"
857 def wrapper(b:'This is the prior annotation'):
858 pass
859 functools.update_wrapper(wrapper, f)
860 return wrapper, f
861
862 def test_default_update(self):
863 wrapper, f = self._default_update()

Callers 2

test_default_updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected