Skip to content

Syntax error shown on f-string #8637

@Marcie-bit

Description

@Marcie-bit

Issue Type: syntax error

Syntax error with f-string in any version of Python :(

Extension version: 2019.10.44104
VS Code version: Code 1.40.1 (8795a9889db74563ddd43eb0a897a2384129a619, 2019-11-13T16:47:44.719Z)
OS version: Darwin x64 17.7.0

Expected behaviour
f-string

Actual behaviour
I get a SyntaxError: invalid syntax on my f-strings.

Steps to reproduce:
I am new to coding and VSCode. I checked different Python versions from VSCode menu - 3.8, 3.6(f-string should work with these versions as far as I know) and different code examples but all I get is a syntax error.
It's probably something related to VSCode configuration, I am note quite experienced on it yet.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions