-
-
Notifications
You must be signed in to change notification settings - Fork 145
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
e.g. for a method:
def get_val() -> int | str:
"""Get value.
Returns:
int | str: the value.
"""
pass
Expected Behavior
def get_val() ‑> int | str
Get value.
Returns
int | str
The value.
Actual Behavior
def get_val() ‑> int | str
Get value.
Returns
int | None The value.
See more details in the attached picture
Steps to Reproduce
Additional info
- pdoc version: 0.10.0
Example 1
Here is the example in action, comparing | and Union:

Example 2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
