Skip to content

Figure out how to support type aliases #17

Closed
@lagru

Description

@lagru

Type annotations are regular Python objects and as such can be used to create an alias like

Point = tuple[float, float]

These are valid types that should be picked up during type collection.

Unfortunately I don't see an easy way right now to differentiate them from regular assigns that aren't valid as annotations. For a start, we could simply treat any assignment as a valid type and tell users to rely on type checkers to pick this up...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions