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