Skip to content

Documentation shows unexpected ForwardRef(None) inside Union. #395

@hhoppe

Description

@hhoppe

Input:

from typing import Union def test1_func(arg: Union[None, str, int]) -> None: return 

Resulting documentation:
def test1_func(arg: Union[ForwardRef(None), str, int]) ‑> None

Expected documentation:
def test1_func(arg: Union[None, str, int]) ‑> None

!pdoc --version
pdoc 0.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions