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 95fb103 commit 6bd15abCopy full SHA for 6bd15ab
src/desert/_make.py
@@ -116,12 +116,8 @@ def class_schema(
116
else:
117
raise desert.exceptions.NotAnAttrsClassOrDataclass(clazz)
118
119
- # Copy all public fields of the dataclass to the schema
120
- attributes: t.Dict[
121
- str, t.Union[dataclasses.Field, attr.Attribute, marshmallow.fields.Field]
122
- ] = {field.name: field for field in fields if not field.name.startswith("_")}
123
-
124
# Update the schema members to contain marshmallow fields instead of dataclass fields.
+ attributes: t.Dict[str, marshmallow.fields.Field] = {}
125
hints = t.get_type_hints(clazz)
126
for field in fields:
127
if field.init:
0 commit comments