Skip to content

Tuple and Callable should be listed as generic variants of builtin classes #212

Closed
@ilevkivskyi

Description

@ilevkivskyi

Currently Callable and Tuple are listed in the section "Fundamental building blocks", I would rather move them to "Generic variants of builtin classes". Indeed, Callable[..., [Any]] could be just equivalent to collections.abc.Callable (See also this comment #133 (comment)), and Tuple[Any, ...] could be just equivalent to tuple, in the same way as List[Any] is an equivalent of list.

Also, although Optional is just a particular case of Union, maybe it should be listed in the section "Fundamental building blocks" for completeness.

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