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

Method namespace2

Lib/test/test_annotationlib.py:1934–1944  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1932 return a
1933
1934 def namespace2():
1935 a = ForwardRef("A")
1936
1937 class A:
1938 pass
1939
1940 def fun(x: a):
1941 pass
1942
1943 get_type_hints(fun, globals(), locals())
1944 return a
1945
1946 self.assertEqual(namespace1(), namespace1())
1947 self.assertEqual(namespace1(), namespace2())

Callers

nothing calls this directly

Calls 2

ForwardRefClass · 0.90
get_type_hintsFunction · 0.90

Tested by

no test coverage detected