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

Method test_function

Lib/test/test_annotationlib.py:261–266  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

259 self.assertEqual(anno, {"arg": "x"})
260
261 def test_function(self):
262 def f(x: int, y: doesntexist):
263 pass
264
265 anno = get_annotations(f, format=Format.STRING)
266 self.assertEqual(anno, {"x": "int", "y": "doesntexist"})
267
268 def test_expressions(self):
269 def f(

Callers

nothing calls this directly

Calls 2

get_annotationsFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected