MCPcopy Index your code
hub / github.com/RustPython/RustPython / namespace2

Method namespace2

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

Source from the content-addressed store, hash-verified

1907 return a
1908
1909 def namespace2():
1910 a = ForwardRef("A")
1911
1912 class A:
1913 pass
1914
1915 def fun(x: a):
1916 pass
1917
1918 get_type_hints(fun, globals(), locals())
1919 return a
1920
1921 self.assertEqual(namespace1(), namespace1())
1922 self.assertEqual(namespace1(), namespace2())

Callers

nothing calls this directly

Calls 4

ForwardRefClass · 0.90
get_type_hintsFunction · 0.90
globalsFunction · 0.85
localsFunction · 0.85

Tested by

no test coverage detected