MCPcopy Index your code
hub / github.com/python/mypy / test_function_context_nested_classes

Method test_function_context_nested_classes

mypy/test/teststubgen.py:776–784  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

774 assert common_dir_prefix([r"foo/bar/x.pyi"]) == r"foo\bar"
775
776 def test_function_context_nested_classes(self) -> None:
777 ctx = FunctionContext(
778 module_name="spangle",
779 name="foo",
780 class_info=ClassInfo(
781 name="Nested", self_var="self", parent=ClassInfo(name="Parent", self_var="self")
782 ),
783 )
784 assert ctx.fullname == "spangle.Parent.Nested.foo"
785
786
787class StubgenHelpersSuite(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

FunctionContextClass · 0.90
ClassInfoClass · 0.90

Tested by

no test coverage detected