| 23 | _pydantic_schema_str, |
| 24 | _strip_optional, |
| 25 | preview_resolve, |
| 26 | resolve_magic_input, |
| 27 | ) |
| 28 | |
| 29 | |
| 30 | class StripOptionalTests(unittest.TestCase): |
| 31 | def test_optional_t(self) -> None: |
| 32 | self.assertIs(_strip_optional(Optional[int]), int) |
| 33 | |
| 34 | def test_pep604_union_with_none(self) -> None: |
| 35 | self.assertIs(_strip_optional(int | None), int) |
| 36 | |
| 37 | def test_plain_t_unchanged(self) -> None: |
| 38 | self.assertIs(_strip_optional(int), int) |
| 39 | |
| 40 | def test_union_without_none_unchanged(self) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected