Skip to content

Shorthand for Tuple and Optional #151

@DRayX

Description

@DRayX

Tuple and Optional will are used very frequently in my experimentation. Similar to allowing None in place of NoneType, it would be nice to have some shorthand expression for these types. As a possible suggestion, a tuple of types should be treated as Tuple, that is (int, str) would be equivalent to Tuple[int, str]. A set of a single type could be treated as an optional of that type, that is {int} would be equivalent to Optional[int].

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