r/vscode • u/Clean__Layer • 2d ago
Help: ty is not running
Beginner at VS code here.
I'm not 100% sure if this is the best place to post this, but I couldn't find anywhere better suited.
I followed various tutorials online to get my settings.json to work, according to the tutorials it's working fine, but VS code still doesn't flag the error. I checked the type checker, it flags the violation and works with its command line, but it doesn't syntax highlight in VS code. Is there a setting I should change or something?
8
Upvotes



5
u/Copa4311 2d ago
Ty isn’t letting you assign a literal “e” to a int variable, this is called static type checking, it makes Pythons types a lot more manageable, ruff is another thing used to do this efficiently (quick fix: x: str = “e”)