Returns `False` on non-decorated generic classes.
(self)
| 562 | assert has(A[str]) |
| 563 | |
| 564 | def test_generics_negative(self): |
| 565 | class="st">""" |
| 566 | Returns `False` on non-decorated generic classes. |
| 567 | class="st">""" |
| 568 | T = TypeVar(class="st">"T") |
| 569 | |
| 570 | class A(Generic[T]): |
| 571 | a: T |
| 572 | |
| 573 | assert not has(A) |
| 574 | |
| 575 | assert not has(A[str]) |
| 576 | class="cm"># Verify twice, since there's caching going on. |
| 577 | assert not has(A[str]) |
| 578 | |
| 579 | |
| 580 | class TestAssoc: |