(self)
| 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]): |
| 106 | y: List[T] |
| 107 | |
| 108 | assert get_class_annotations(Sub) == {"x": int, "y": List[T]} |
| 109 | assert get_class_annotations(Sub[float]) == {"x": int, "y": List[float]} |
| 110 | |
| 111 | def test_generic_sub4(self): |
| 112 | class Sub(Base[T]): |
nothing calls this directly
no test coverage detected