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

Method test_generic_sub2

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

Source from the content-addressed store, hash-verified

95 assert get_class_annotations(Sub) == {"x": T, "y": int}
96
97 def test_generic_sub2(self):
98 class Sub(Base, Generic[T]):
99 y: List[T]
100
101 assert get_class_annotations(Sub) == {"x": T, "y": List[T]}
102 assert get_class_annotations(Sub[int]) == {"x": T, "y": List[int]}
103
104 def test_generic_sub3(self):
105 class Sub(Base[int], Generic[T]):

Callers

nothing calls this directly

Calls 1

get_class_annotationsFunction · 0.90

Tested by

no test coverage detected