Skip to content

Document how to turn of pyright type annotation warnings #1108

@MarcSkovMadsen

Description

@MarcSkovMadsen

When trying to type annotate Parameterized class pyright warnings are all over the place in VS Code

Image

Its possible to turn off these warnings in pyproject.toml with

[tool.pyright]                                                                                                                                         
reportAssignmentType = false
Image

Its also possible to ignore a specific line:

Image

Its also possible to ignore in a specific file:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    TRIAGEUser-submitted issue that hasn't been triaged yet.type-bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions