Skip to content

Commit 6bd15ab

Browse files
committed
remove some (more or less) dead code
1 parent 95fb103 commit 6bd15ab

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/desert/_make.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,8 @@ def class_schema(
116116
else:
117117
raise desert.exceptions.NotAnAttrsClassOrDataclass(clazz)
118118

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-
124119
# Update the schema members to contain marshmallow fields instead of dataclass fields.
120+
attributes: t.Dict[str, marshmallow.fields.Field] = {}
125121
hints = t.get_type_hints(clazz)
126122
for field in fields:
127123
if field.init:

0 commit comments

Comments
 (0)