Skip to content

'Self' string literal type is Unknown in pyright #70

Closed

Description

@Avasam

image

non string literal type Self works, but I believe it has issues with mypy iirc. You can use the same workaround as typeshed does by defining a TypeVar: Self = TypeVar("Self")

Activity

  1. cpburnz commented on Dec 3, 2022

    @cpburnz
    Owner

    @Avasam Thanks for pointing this out as well. My adhoc method was messy.

  2. added a commit that references this issue on Dec 3, 2022
    7865e9f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions