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

Method test_generic_sub8

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

Source from the content-addressed store, hash-verified

137 assert get_class_annotations(Sub[int]) == {"x": List[int], "y": Set[int]}
138
139 def test_generic_sub8(self):
140 class Sub(Base[int], Base2[float, str]):
141 pass
142
143 assert get_class_annotations(Sub) == {"x": int, "a": float, "b": str}
144
145 def test_generic_sub9(self):
146 class Sub(Base[U], Base2[List[U], U]):

Callers

nothing calls this directly

Calls 1

get_class_annotationsFunction · 0.90

Tested by

no test coverage detected