Skip to content

N808 TypeVar names starting with a single underscore. #245

@Joshix-1

Description

@Joshix-1

I think _T_co should be an acceptable name for a covariant TypeVar. As there is no explicit test for this case it seems to me that this wasn't considered in #235
If it was intended to disallow that, then I'd like to know why and it would be good to add a test for that case.

I would prefer allowing a single underscore in front of the name of the TypeVar. But what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions