Skip to content

Commit 683e4a7

Browse files
committed
doc improvement
1 parent 34e7d21 commit 683e4a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/unions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ClassA:
2828

2929
@define
3030
class ClassB:
31-
field_one: Literal["two"]
31+
field_one: Literal["two"] = "two"
3232
```
3333

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

0 commit comments

Comments
 (0)