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