(create_module)
| 668 | |
| 669 | |
| 670 | def test_class_var_forward_ref(create_module): |
| 671 | # see #3679 |
| 672 | create_module( |
| 673 | # language=Python |
| 674 | """ |
| 675 | from __future__ import annotations |
| 676 | from typing import ClassVar |
| 677 | from pydantic import BaseModel |
| 678 | |
| 679 | class WithClassVar(BaseModel): |
| 680 | Instances: ClassVar[dict[str, WithClassVar]] = {} |
| 681 | """ |
| 682 | ) |
| 683 | |
| 684 | |
| 685 | def test_recursive_model(create_module): |
nothing calls this directly
no test coverage detected