test-data/unit/fine-grained-python314.test
raw| 1 | [case testTemplateStringImplicitDependencyFineGrained] |
| 2 | import m |
| 3 | x: str = m.x |
| 4 | |
| 5 | [file m.py] |
| 6 | x = "foo" |
| 7 | |
| 8 | [file m.py.2] |
| 9 | x = t"foo" |
| 10 | |
| 11 | [file typing_extensions.pyi] |
| 12 | LiteralString = str |
| 13 | |
| 14 | [builtins fixtures/f_string.pyi] |
| 15 | [out] |
| 16 | == |
| 17 | main:2: error: Incompatible types in assignment (expression has type "Template", variable has type "str") |