Skip to content

Commit

Permalink
doc improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Nov 15, 2023
1 parent 34e7d21 commit 683e4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/unions.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ClassA:

@define
class ClassB:
field_one: Literal["two"]
field_one: Literal["two"] = "two"
```

In this case, a payload containing `{"field_one": "one"}` will produce an instance of `ClassA`.
Expand Down

0 comments on commit 683e4a7

Please sign in to comment.