We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 47a8dde + da81f1f commit 127f214Copy full SHA for 127f214
serde/de.py
@@ -122,6 +122,9 @@ def wrap(cls: Type):
122
123
# Collect types used in the generated code.
124
for typ in iter_types(cls):
125
+ if typ is cls:
126
+ continue
127
+
128
if is_dataclass(typ) or is_enum(typ) or not is_primitive(typ):
129
scope.types[typ.__name__] = typ
130
serde/se.py
@@ -133,6 +133,9 @@ def wrap(cls: Type):
133
134
135
136
137
138
139
140
141
0 commit comments