[Python] Getting an "unexpected token" error with jaxtyping

Discussão em 'Python' iniciado por Stack, Agosto 18, 2025.

  1. Stack

    Stack Membro Participativo

    I'm getting these "Unexpected token at end of expression" errors in VS Code. Any suggestions for a fix or workaround?

    [​IMG]

    In VS Code, I've messed around a bit in the settings.json trying out different things (e.g. Pyright as diagnostics source, and jedi as language server), without success.

    Maybe here there'd be a setting to just ignore this, but stuff hasn't seemed to work.

    "python.analysis.diagnosticSeverityOverrides": {
    "reportMissingImports": "none",
    "reportMissingModuleSource": "none",
    "reportUnknownVariableType": "none",
    "reportAssignmentType": "none",
    },

    Continue reading...

Compartilhe esta Página