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

Method namespace1

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

Source from the content-addressed store, hash-verified

1923
1924 def test_forward_equality_namespace(self):
1925 def namespace1():
1926 a = ForwardRef("A")
1927
1928 def fun(x: a):
1929 pass
1930
1931 get_type_hints(fun, globals(), locals())
1932 return a
1933
1934 def namespace2():
1935 a = ForwardRef("A")

Callers

nothing calls this directly

Calls 2

ForwardRefClass · 0.90
get_type_hintsFunction · 0.90

Tested by

no test coverage detected