Skip to content

Optional[Type] is shown as Union[Type, NoneType] #324

@hhoppe

Description

@hhoppe

In the doc I maintain, https://google.github.io/mediapy/, the functions have many typing attributes.
These generally look great in the pdoc3 output, except that Optional[Type] is replaced by the more confusing Union[Type, NoneType].
Perhaps it would be possible to recognize this pattern and somehow change it back?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions