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

Method test_generic_sub4

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

Source from the content-addressed store, hash-verified

109 assert get_class_annotations(Sub[float]) == {"x": int, "y": List[float]}
110
111 def test_generic_sub4(self):
112 class Sub(Base[T]):
113 y: List[T]
114
115 assert get_class_annotations(Sub) == {"x": T, "y": List[T]}
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]):

Callers

nothing calls this directly

Calls 1

get_class_annotationsFunction · 0.90

Tested by

no test coverage detected