MCPcopy Create free account
hub / github.com/msgspec/msgspec / test_generic_sub5

Method test_generic_sub5

tests/unit/test_utils.py:118–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

116 assert get_class_annotations(Sub[int]) == {"x": int, "y": List[int]}
117
118 def test_generic_sub5(self):
119 class Sub(Base[T], Generic[T]):
120 y: List[T]
121
122 assert get_class_annotations(Sub) == {"x": T, "y": List[T]}
123 assert get_class_annotations(Sub[int]) == {"x": int, "y": List[int]}
124
125 def test_generic_sub6(self):
126 class Sub(Base[S]):

Callers

nothing calls this directly

Calls 1

get_class_annotationsFunction · 0.90

Tested by

no test coverage detected