Skip to content

Dataclass unbound in type annotation #282

@danmarinescu

Description

@danmarinescu

Describe the bug
I'm using type annotations in a dataclass. While other annotations work as expected, pyright is raising a problem when an annotation is used with the same type as the dataclass

To Reproduce
See screenshot

Expected behavior
No problem should be raised.

Screenshots or Code
Screenshot 2019-10-04 at 08 53 37

VS Code extension or command-line
I am running pyright 1.0.69 as a VS Code extension

Metadata

Metadata

Assignees

No one assigned

    Labels

    as designedNot a bug, working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions