Skip to content

[TSP] Double errors with pyrefly #7950

@kinto0

Description

@kinto0

Environment data

TSP settings:

    "python.analysis.enableExternalTypeServer": true,
    "python.analysis.typeServerArguments": [
        "tsp"
    ],
    "python.analysis.typeServerExecutable": "/Users/kylei/projects/test/.venv/bin/pyrefly"
  • Pylance version: 2026.1.102
  • OS: Mac
  • Python version (& distribution if applicable, e.g. Anaconda): 3.13.8 using UV
  • Pyrefly version:
(test) testkylei@kylei-mbp test % pyrefly --version
pyrefly 0.58.0

Code Snippet

1 + ""

->
see two pyrefly errors appear

Image

Expected behavior

One pyrefly error

Logs

2026-03-25 15:30:57.318 [error] (44796): BG(test): TS:  INFO Published 2 diagnostics for file:///Users/kylei/projects/test/test.py

Metadata

Metadata

Assignees

Labels

ai-triage-respondedIndicate whether the AI triage agent has responded to this issue.team needs to reproduceIssue has not been reproduced yet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions