Skip to content

A lot of wrong typing hints? #4999

@larsblumberg

Description

@larsblumberg

Describe the bug
Using a LSP server with a Reflex app gives a lot of typing errors although all code is correct.

To Reproduce
Enable a LSP such as pylsp-mypy in a Reflex project.

  • Code/Link to Repo: n/a

Expected behavior
LSP does not show typing errors when Relfex is used correctly.

Screenshots

Image

Specifics (please complete the following information):

  • Python Version: 3.11
  • Reflex Version: 0.7.3
  • OS: Pop_OS

Additional context

Using these LSP dependencies:

[tool.poetry.group.dev.dependencies]
pylsp-mypy = ">=0.7.0"
python-lsp-ruff = ">=2.2.2"
python-lsp-server = ">=1.12.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAnything you want improved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions