We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 697a956 commit 5f05495Copy full SHA for 5f05495
test-data/unit/fine-grained.test
@@ -5806,6 +5806,18 @@ class M(type):
5806
==
5807
a.py:2: error: Argument 1 to "f" of "M" has incompatible type "int"; expected "str"
5808
5809
+[case testFString]
5810
+from a import g
5811
+f'{g(1)}'
5812
+[file a.py]
5813
+def g(x: int) -> str: pass
5814
+[file a.py.2]
5815
+def g(x: str) -> str: pass
5816
+[builtins fixtures/f_string.pyi]
5817
+[out]
5818
+==
5819
+main:2: error: Argument 1 to "g" has incompatible type "int"; expected "str"
5820
+
5821
[case testExtendedUnpacking-skip-cache]
5822
from typing import List
5823
from a import g
0 commit comments