Skip to content

Commit 6cf6211

Browse files
committed
test f-string type using reveal_type
1 parent 3a37e18 commit 6cf6211

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test-data/unit/check-newsyntax.test

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ f'result: {value:{width}.{precision}}'
147147
[case testNewSyntaxFStringSingleField]
148148
# flags: --python-version 3.6
149149
v = 1
150-
f'{v}' + ''
151-
f'{1}' + ''
152-
f' {v}' + ''
150+
reveal_type(f'{v}') # E: Revealed type is 'builtins.str'
151+
reveal_type(f'{1}') # E: Revealed type is 'builtins.str'
153152
[builtins fixtures/f_string.pyi]
154153

0 commit comments

Comments
 (0)