Skip to content

Add type hints #54

Description

@MJGaughran

At the moment, cothread does not play nicely with type hinting in the rest of your code.

This could be done to a limited extent, as with aioca. For example, a Protocol is used here to make the list of additional attributes on an AugmentedValue clear.

Alternatively, this could be done more comprehensively using constrained TypeVars and Generics. Python typing is not perfect, so this may introduce problems.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions