(self)
| 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]): |
nothing calls this directly
no test coverage detected