We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e7d21 commit 683e4a7Copy full SHA for 683e4a7
docs/unions.md
@@ -28,7 +28,7 @@ class ClassA:
28
29
@define
30
class ClassB:
31
- field_one: Literal["two"]
+ field_one: Literal["two"] = "two"
32
```
33
34
In this case, a payload containing `{"field_one": "one"}` will produce an instance of `ClassA`.
0 commit comments