Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
Fix example 5
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jun 29, 2020
1 parent 605b395 commit 15b82ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ def optional_value_type(rtype: RType) -> Optional[RType]:
Otherwise return None.
"""
match rtype:
case RUnion(items=[none_rprimitive, b]):
case RUnion(items=[.none_rprimitive, b]):
return b
case RUnion(items=[a, none_rprimitive]):
case RUnion(items=[a, .none_rprimitive]):
return a
case _:
return None
Expand Down

0 comments on commit 15b82ab

Please sign in to comment.